diff --git a/controller/store.go b/controller/store.go index 818e201..3650001 100644 --- a/controller/store.go +++ b/controller/store.go @@ -27,6 +27,7 @@ func StoreList(c *gin.Context) { return } RespOK(c, stores) + return } func DisplayStoreList(c *gin.Context) { diff --git a/model/user.go b/model/user.go index 5117234..4a30c57 100644 --- a/model/user.go +++ b/model/user.go @@ -45,9 +45,11 @@ type User struct { CooperativeBusinessId uint32 `json:"cooperative_business_id" gorm:"index"` // 合作商id CooperativeName string `json:"cooperative_name"` // 合作商名称 ShopAssistantName string `json:"shop_assistant_name"` // 店员名称 - Version uint32 `json:"-"` - UserVm *UserVm `json:"user_vm" gorm:"-"` // + Version uint32 `json:"-"` // + UserVm *UserVm `json:"user_vm" gorm:"-"` // + //RoleId uint32 `json:"role_id"` // 角色id + } func (o *User) TableName() string {