...
|
...
|
@@ -98,7 +98,13 @@ func (rolesService *RolesService) RoleList(roleListQuery *query.RoleListQuery) ( |
|
|
RoleType: roleListQuery.RoleType,
|
|
|
}
|
|
|
if len(roleListQuery.OrgIds) > 0 {
|
|
|
req.InOrgIds = roleListQuery.OrgIds
|
|
|
var orgIds []int64
|
|
|
for i := 0; i < len(roleListQuery.OrgIds); i++ {
|
|
|
orgIdString := roleListQuery.OrgIds[i]
|
|
|
orgId, _ := strconv.ParseInt(orgIdString, 10, 64)
|
|
|
orgIds = append(orgIds, orgId)
|
|
|
}
|
|
|
req.InOrgIds = orgIds
|
|
|
}
|
|
|
roleList, err := creationUserGateway.RoleSearch(req)
|
|
|
if err != nil {
|
...
|
...
|
|