use of com.jun.plugin.system.vo.resp.UserOwnRoleRespVO in project jun_springboot_api_service by wujun728.
the class UserServiceImpl method getUserOwnRole.
@Override
public UserOwnRoleRespVO getUserOwnRole(String userId) {
List<String> roleIdsByUserId = userRoleService.getRoleIdsByUserId(userId);
List<SysRole> list = roleService.list();
UserOwnRoleRespVO vo = new UserOwnRoleRespVO();
vo.setAllRole(list);
vo.setOwnRoles(roleIdsByUserId);
return vo;
}
Aggregations