Search in sources :

Example 1 with RoleAppRelation

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;
}
Also used : RoleAppRelation(com.ibeiliao.deployment.admin.vo.account.RoleAppRelation) RolePO(com.ibeiliao.deployment.admin.po.account.RolePO)

Aggregations

RolePO (com.ibeiliao.deployment.admin.po.account.RolePO)1 RoleAppRelation (com.ibeiliao.deployment.admin.vo.account.RoleAppRelation)1