This commit is contained in:
苏尹岚
2021-02-08 09:02:19 +08:00
parent 725458dfe3
commit 8ae64f3f18
2 changed files with 3 additions and 2 deletions

View File

@@ -784,13 +784,13 @@ func (*Brand) TableUnique() [][]string {
}
}
type BrandStroe struct {
type BrandStore struct {
ModelIDCULD
Name string `orm:"size(255)" json:"name"` //门店名
}
func (*BrandStroe) TableUnique() [][]string {
func (*BrandStore) TableUnique() [][]string {
return [][]string{
[]string{"Name"},
}

View File

@@ -42,6 +42,7 @@ func Init() {
orm.RegisterModel(&model.StorePushClient{})
orm.RegisterModel(&model.StoreAudit{})
orm.RegisterModel(&model.Brand{})
orm.RegisterModel(&model.BrandStore{})
orm.RegisterModel(&model.AuthBind{}, &model.User{})