aa
This commit is contained in:
@@ -761,3 +761,16 @@ func (*StoreAudit) TableIndex() [][]string {
|
|||||||
[]string{"UserID"},
|
[]string{"UserID"},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type Brand struct {
|
||||||
|
ModelIDCULD
|
||||||
|
|
||||||
|
Name string `orm:"size(255)" json:"name"` //品牌名
|
||||||
|
Logo string `orm:"size(255)" json:"logo"` //品牌logo
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*Brand) TableUnique() [][]string {
|
||||||
|
return [][]string{
|
||||||
|
[]string{"Name"},
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
@@ -40,6 +40,7 @@ func Init() {
|
|||||||
orm.RegisterModel(&model.SkuExinfoMap{})
|
orm.RegisterModel(&model.SkuExinfoMap{})
|
||||||
orm.RegisterModel(&model.StorePushClient{})
|
orm.RegisterModel(&model.StorePushClient{})
|
||||||
orm.RegisterModel(&model.StoreAudit{})
|
orm.RegisterModel(&model.StoreAudit{})
|
||||||
|
orm.RegisterModel(&model.Brand{})
|
||||||
|
|
||||||
orm.RegisterModel(&model.AuthBind{}, &model.User{})
|
orm.RegisterModel(&model.AuthBind{}, &model.User{})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user