经皮湿水仪init and bind's all api
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
package model
|
||||
|
||||
import (
|
||||
"lone-services/pkg/modelbase"
|
||||
"lone-services/services/express/internal/dao"
|
||||
)
|
||||
|
||||
type CodeModel struct {
|
||||
modelbase.Base
|
||||
}
|
||||
|
||||
func (m CodeModel) TableName() string {
|
||||
return modelbase.Prefix() + "code"
|
||||
}
|
||||
|
||||
func (m CodeModel) Init() CodeModel {
|
||||
m.Table = m.TableName()
|
||||
return m
|
||||
}
|
||||
|
||||
func (m CodeModel) Create(data *dao.CodeCreate) error {
|
||||
return m.Base.Create(data)
|
||||
}
|
||||
Reference in New Issue
Block a user