feat:(REQ-2227) 角色tree接口增加workspaceType
This commit is contained in:
parent
6b47280781
commit
7ded370e51
@ -23,6 +23,8 @@ public class RoleTreeRes {
|
||||
*/
|
||||
private String workspaceTypeCode;
|
||||
|
||||
private String workspaceType;
|
||||
|
||||
/**
|
||||
* 名字
|
||||
*/
|
||||
|
||||
@ -5,6 +5,7 @@ import cn.axzo.framework.domain.web.result.ApiListResult;
|
||||
import cn.axzo.framework.domain.web.result.ApiPageResult;
|
||||
import cn.axzo.framework.domain.web.result.ApiResult;
|
||||
import cn.axzo.tyr.client.feign.TyrSaasRoleApi;
|
||||
import cn.axzo.tyr.client.model.enums.DictWorkSpaceTypeEnum;
|
||||
import cn.axzo.tyr.client.model.req.ChangeGroupLeaderRoleReq;
|
||||
import cn.axzo.tyr.client.model.req.CommonDictQueryReq;
|
||||
import cn.axzo.tyr.client.model.req.FeatureRoleRelationReq;
|
||||
@ -197,6 +198,7 @@ public class SaasRoleController implements TyrSaasRoleApi {
|
||||
// 因为根节点在roleGroup里面没有,都是workspaceTypeCode,描述是放在字典表里
|
||||
List<CommonDictResp> commonDicts = listRootRole(req);
|
||||
|
||||
|
||||
List<RoleTreeRes> roots = commonDicts.stream()
|
||||
.map(e -> RoleTreeRes.builder()
|
||||
.id(e.getId())
|
||||
@ -204,6 +206,7 @@ public class SaasRoleController implements TyrSaasRoleApi {
|
||||
.name(e.getDictValue())
|
||||
.type(ROOT_TYPE)
|
||||
.idStr(e.getId() + ":" + ROOT_TYPE)
|
||||
.workspaceType(DictWorkSpaceTypeEnum.getByValueWorkspaceType(Integer.valueOf(e.getDictCode())).getValue())
|
||||
.build())
|
||||
.collect(Collectors.toList());
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user