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