Files
lone-services/product/internal/model/edit_log_model.go
T
2026-08-11 09:30:38 +08:00

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)
}