use of com.ibeiliao.deployment.admin.vo.account.RoleAppRelation in project Corgi by kevinYin.
the class AdminAccountServiceImpl method listAccountApps.
@Override
public List<Integer> listAccountApps(long uid) {
List<Integer> result = new ArrayList<>();
// 读取角色列表
List<RolePO> roleList = accountRoleRelationDao.listRoleByAccount(uid);
for (RolePO po : roleList) {
int roleId = po.getRoleId();
List<RoleAppRelation> list = roleService.listRoleAppRelations(roleId);
for (RoleAppRelation vo : list) {
result.add(vo.getAppId());
}
}
return result;
}
Aggregations