|
|
package service
|
|
|
|
|
|
import (
|
|
|
"gitlab.fjmaimaimai.com/allied-creation/allied-creation-gateway/pkg/domain"
|
|
|
"strconv"
|
|
|
|
|
|
"github.com/linmadan/egglib-go/core/application"
|
...
|
...
|
@@ -93,6 +94,7 @@ func (rolesService *RolesService) RoleList(roleListQuery *query.RoleListQuery) ( |
|
|
OrgName: roleListQuery.OrgName,
|
|
|
RoleName: roleListQuery.RoleName,
|
|
|
InOrgIds: roleListQuery.Operator.OrgIds,
|
|
|
RoleType: roleListQuery.RoleType,
|
|
|
})
|
|
|
if err != nil {
|
|
|
return 0, nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error())
|
...
|
...
|
@@ -111,6 +113,9 @@ func (rolesService *RolesService) RoleList(roleListQuery *query.RoleListQuery) ( |
|
|
if int64(v.OrgID) == roleListQuery.Operator.OrgId {
|
|
|
item.AuthFlag = true
|
|
|
}
|
|
|
if (item.RoleType & domain.UserTypeCompanyAdmin) > 0 {
|
|
|
item.AuthFlag = false
|
|
|
}
|
|
|
result = append(result, item)
|
|
|
}
|
|
|
var cnt int64 = roleList.Count
|
...
|
...
|
|