作者 yangfu

权限配置 角色列表获取修改

@@ -139,9 +139,9 @@ func (rolesService *RolesService) RoleMenuBeforeEdit(roleMenuBeforeEditQuery *qu @@ -139,9 +139,9 @@ func (rolesService *RolesService) RoleMenuBeforeEdit(roleMenuBeforeEditQuery *qu
139 roleMenuBeforeEditQuery.Operator) 139 roleMenuBeforeEditQuery.Operator)
140 roleId, _ := strconv.Atoi(roleMenuBeforeEditQuery.RoleId) 140 roleId, _ := strconv.Atoi(roleMenuBeforeEditQuery.RoleId)
141 roles, err := creationUserGateway.RoleSearch(allied_creation_user.ReqRoleSearch{ 141 roles, err := creationUserGateway.RoleSearch(allied_creation_user.ReqRoleSearch{
142 - OrgId: roleMenuBeforeEditQuery.Operator.OrgId,  
143 - Limit: 999,  
144 - RoleType: 1, 142 + CompanyId: roleMenuBeforeEditQuery.Operator.CompanyId,
  143 + Limit: 999,
  144 + RoleType: 1,
145 }) 145 })
146 if err != nil { 146 if err != nil {
147 return nil, application.ThrowError(application.BUSINESS_ERROR, err.Error()) 147 return nil, application.ThrowError(application.BUSINESS_ERROR, err.Error())
@@ -33,6 +33,8 @@ type ( @@ -33,6 +33,8 @@ type (
33 RoleName string `json:"roleName"` 33 RoleName string `json:"roleName"`
34 // 组织ID 34 // 组织ID
35 OrgId int64 `json:"orgId"` 35 OrgId int64 `json:"orgId"`
  36 + // 企业id
  37 + CompanyId int64 `cname:"企业id" json:"companyId"`
36 // 匹配多个组织 38 // 匹配多个组织
37 InOrgIds []int64 `cname:"匹配多个组织" json:"inOrgIds,omitempty"` 39 InOrgIds []int64 `cname:"匹配多个组织" json:"inOrgIds,omitempty"`
38 // 角色名称 40 // 角色名称