feat:(REQ-2227) 角色查询接口增加是否启用和隐藏返回

This commit is contained in:
lilong 2024-04-18 09:42:30 +08:00
parent af5af22c3e
commit 055c69bb01
2 changed files with 11 additions and 0 deletions

View File

@ -26,6 +26,15 @@ public class RoleWithUserRes {
/** 角色下用户 **/
private List<UserVO> users;
/**
* '是否显示'
*/
private Boolean isDisplay;
/**
* '是否启用'
*/
private Boolean enabled;
@Data
public static class UserVO {

View File

@ -755,6 +755,8 @@ public class RoleServiceImpl extends ServiceImpl<SaasRoleMapper, SaasRole>
roleWithUser.setRoleId(role.getId());
roleWithUser.setRoleName(role.getName());
roleWithUser.setRoleType(role.getRoleType());
roleWithUser.setIsDisplay(role.getIsDisplay());
roleWithUser.setEnabled(role.getEnabled());
List<SaasRoleUserRelation> relations = relationMap.get(role.getId());
if (CollectionUtil.isNotEmpty(relations)) {