25 lines
381 B
Go
25 lines
381 B
Go
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)
|
|
}
|