This commit is contained in:
苏尹岚
2021-01-22 16:59:13 +08:00
parent 6462231c86
commit 61d01e7cbf
3 changed files with 10 additions and 18 deletions

View File

@@ -228,10 +228,12 @@ func (v *UserMember) TableIndex() [][]string {
type Role struct {
ModelIDCULD
Name string `json:"name"` //角色名
BrandID int `orm:"column(brand_id)" json:"brandID"`
CityCodes string `orm:"type(text)" json:"cityCodes"`
StoreIDs string `orm:"column(store_ids);type(text)" json:"storeIDs"`
Name string `json:"name"` //角色名
BrandID int `orm:"column(brand_id)" json:"brandID"`
CityCodes string `orm:"type(text)" json:"cityCodes"`
StoreIDs string `orm:"column(store_ids);type(text)" json:"storeIDs"`
CityInfo []*Place `orm:"-" json:"cityInfo"`
Stores []*Store `orm:"-" json:"storeInfo"`
}
func (*Role) TableUnique() [][]string {