feat: test product
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
package model
|
||||
|
||||
import (
|
||||
"product/internal/dao"
|
||||
|
||||
"pkg.local/modelbase"
|
||||
)
|
||||
|
||||
type ActionApplyLogModel struct {
|
||||
modelbase.Base
|
||||
}
|
||||
|
||||
func (m ActionApplyLogModel) TableName() string {
|
||||
return modelbase.Prefix() + "action_apply_log"
|
||||
}
|
||||
|
||||
func (m ActionApplyLogModel) Init() ActionApplyLogModel {
|
||||
m.Table = m.TableName()
|
||||
return m
|
||||
}
|
||||
|
||||
func (m ActionApplyLogModel) Create(data *dao.ActionApplyLogCreate) error {
|
||||
return m.Base.Create(data)
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
package model
|
||||
|
||||
import (
|
||||
"product/internal/dao"
|
||||
|
||||
"pkg.local/modelbase"
|
||||
)
|
||||
|
||||
type EditLogModel struct {
|
||||
modelbase.Base
|
||||
}
|
||||
|
||||
func (m EditLogModel) TableName() string {
|
||||
return modelbase.Prefix() + "edit_log"
|
||||
}
|
||||
|
||||
func (m EditLogModel) Init() EditLogModel {
|
||||
m.Table = m.TableName()
|
||||
return m
|
||||
}
|
||||
|
||||
func (m EditLogModel) Create(data *dao.EditLogCreate) error {
|
||||
return m.Base.Create(data)
|
||||
}
|
||||
Reference in New Issue
Block a user