...
|
...
|
@@ -88,14 +88,18 @@ func (rolesService *RolesService) RoleGet(roleGetQuery *query.RoleGetQuery) (int |
|
|
func (rolesService *RolesService) RoleList(roleListQuery *query.RoleListQuery) (int64, interface{}, error) {
|
|
|
creationUserGateway := allied_creation_user.NewHttplibAlliedCreationUser(
|
|
|
roleListQuery.Operator)
|
|
|
roleList, err := creationUserGateway.RoleSearch(allied_creation_user.ReqRoleSearch{
|
|
|
req := allied_creation_user.ReqRoleSearch{
|
|
|
Offset: (roleListQuery.PageNumber - 1) * roleListQuery.PageSize,
|
|
|
Limit: roleListQuery.PageSize,
|
|
|
OrgName: roleListQuery.OrgName,
|
|
|
MatchRoleName: roleListQuery.RoleName,
|
|
|
InOrgIds: roleListQuery.Operator.OrgIds,
|
|
|
RoleType: roleListQuery.RoleType,
|
|
|
})
|
|
|
}
|
|
|
if len(roleListQuery.OrgIds) > 0 {
|
|
|
req.InOrgIds = roleListQuery.OrgIds
|
|
|
}
|
|
|
roleList, err := creationUserGateway.RoleSearch(req)
|
|
|
if err != nil {
|
|
|
return 0, nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error())
|
|
|
}
|
...
|
...
|
|