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