经皮湿水仪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/percutaneous/internal/dao"
|
||||
)
|
||||
|
||||
type UsedLogModel struct {
|
||||
modelbase.Base
|
||||
}
|
||||
|
||||
func (m UsedLogModel) TableName() string {
|
||||
return modelbase.Prefix() + "used_log"
|
||||
}
|
||||
|
||||
func (m UsedLogModel) Init() UsedLogModel {
|
||||
m.Table = m.TableName()
|
||||
return m
|
||||
}
|
||||
|
||||
func (m UsedLogModel) Create(data *dao.UsedLog) error {
|
||||
return m.Base.Create(data)
|
||||
}
|
||||
Reference in New Issue
Block a user