作者 yangfu

模式修改

@@ -318,6 +318,7 @@ func (svr AuthService) GetUserMenus(userMenusCommand *command.UserMenusCommand) @@ -318,6 +318,7 @@ func (svr AuthService) GetUserMenus(userMenusCommand *command.UserMenusCommand)
318 UserId: int(userMenusCommand.Operator.UserId), 318 UserId: int(userMenusCommand.Operator.UserId),
319 MenuCategory: userMenusCommand.MenuCategory, 319 MenuCategory: userMenusCommand.MenuCategory,
320 ALLDisableMenu: userMenusCommand.ALLDisableMenu, 320 ALLDisableMenu: userMenusCommand.ALLDisableMenu,
  321 + OrgId: userMenusCommand.Operator.OrgId,
321 }) 322 })
322 if err != nil { 323 if err != nil {
323 return nil, application.ThrowError(application.BUSINESS_ERROR, err.Error()) 324 return nil, application.ThrowError(application.BUSINESS_ERROR, err.Error())
@@ -155,6 +155,7 @@ func (cooperationModeService *CooperationModeService) CooperationModeSelector(li @@ -155,6 +155,7 @@ func (cooperationModeService *CooperationModeService) CooperationModeSelector(li
155 OrgIds: nil, 155 OrgIds: nil,
156 OrgId: listCooperationModeQuery.Operator.OrgId, 156 OrgId: listCooperationModeQuery.Operator.OrgId,
157 UserBaseId: 0, 157 UserBaseId: 0,
  158 + Status: 1,
158 }) 159 })
159 if err != nil { 160 if err != nil {
160 return 0, nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error()) 161 return 0, nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error())
@@ -166,6 +166,8 @@ type ( @@ -166,6 +166,8 @@ type (
166 UserId int64 `json:"userId"` 166 UserId int64 `json:"userId"`
167 UserBaseId int64 `json:"userBaseId"` 167 UserBaseId int64 `json:"userBaseId"`
168 OrgIds []int64 `json:"orgIds"` 168 OrgIds []int64 `json:"orgIds"`
  169 + // 共创模式状态,1启用,2禁用
  170 + Status int32 `json:"status"`
169 //模式编码列表 171 //模式编码列表
170 CooperationModeNumbers []string `cname:"模式编码列表" json:"cooperationModeNumbers,omitempty"` 172 CooperationModeNumbers []string `cname:"模式编码列表" json:"cooperationModeNumbers,omitempty"`
171 } 173 }
@@ -317,6 +317,8 @@ type ( @@ -317,6 +317,8 @@ type (
317 type ( 317 type (
318 ReqUserAccessMenus struct { 318 ReqUserAccessMenus struct {
319 UserId int `json:"userId"` 319 UserId int `json:"userId"`
  320 + // 当前登录组织orgId
  321 + OrgId int64 `cname:"当前登录组织Id" json:"orgId"`
320 // 菜单类别 web app 322 // 菜单类别 web app
321 MenuCategory string `cname:"菜单类别 web app" json:"menuCategory,omitempty"` 323 MenuCategory string `cname:"菜单类别 web app" json:"menuCategory,omitempty"`
322 // 返回所有不可以用的菜单 324 // 返回所有不可以用的菜单