package model import ( "lone-services/pkg/modelbase" "lone-services/services/lonelog/internal/dao" ) type ActionModel struct { modelbase.Base } func (m ActionModel) TableName() string { return modelbase.Prefix() + "admin_action" } func (m ActionModel) Init() ActionModel { m.Table = m.TableName() return m } func (m ActionModel) Create(data *dao.ActionLog) error { return m.Base.Create(data) }