|
@@ -31,7 +31,7 @@ import cn.com.qmth.examcloud.commons.web.security.bean.User;
|
|
import cn.com.qmth.examcloud.commons.web.security.enums.RoleMeta;
|
|
import cn.com.qmth.examcloud.commons.web.security.enums.RoleMeta;
|
|
import cn.com.qmth.examcloud.commons.web.support.ControllerSupport;
|
|
import cn.com.qmth.examcloud.commons.web.support.ControllerSupport;
|
|
import cn.com.qmth.examcloud.core.basic.api.bean.RoleBean;
|
|
import cn.com.qmth.examcloud.core.basic.api.bean.RoleBean;
|
|
-import cn.com.qmth.examcloud.core.basic.api.controller.bean.PrivilegeGroupBean;
|
|
|
|
|
|
+import cn.com.qmth.examcloud.core.basic.api.controller.bean.PrivilegeGroupDomain;
|
|
import cn.com.qmth.examcloud.core.basic.api.controller.bean.PrivilegeDomain;
|
|
import cn.com.qmth.examcloud.core.basic.api.controller.bean.PrivilegeDomain;
|
|
import cn.com.qmth.examcloud.core.basic.api.controller.bean.UpdateRolePrivilegeRelationsDomain;
|
|
import cn.com.qmth.examcloud.core.basic.api.controller.bean.UpdateRolePrivilegeRelationsDomain;
|
|
import cn.com.qmth.examcloud.core.basic.base.constants.BasicConsts;
|
|
import cn.com.qmth.examcloud.core.basic.base.constants.BasicConsts;
|
|
@@ -172,14 +172,14 @@ public class RolePrivilegeController extends ControllerSupport {
|
|
|
|
|
|
@ApiOperation(value = "查询权限组")
|
|
@ApiOperation(value = "查询权限组")
|
|
@GetMapping("getPrivilegeGroupList")
|
|
@GetMapping("getPrivilegeGroupList")
|
|
- public List<PrivilegeGroupBean> getPrivilegeGroupList() {
|
|
|
|
|
|
+ public List<PrivilegeGroupDomain> getPrivilegeGroupList() {
|
|
Sort sort = new Sort(Sort.Direction.ASC, "id");
|
|
Sort sort = new Sort(Sort.Direction.ASC, "id");
|
|
List<PrivilegeGroupEntity> list = privilegeGroupRepo.findAll(sort);
|
|
List<PrivilegeGroupEntity> list = privilegeGroupRepo.findAll(sort);
|
|
|
|
|
|
- List<PrivilegeGroupBean> ret = Lists.newArrayList();
|
|
|
|
|
|
+ List<PrivilegeGroupDomain> ret = Lists.newArrayList();
|
|
|
|
|
|
for (PrivilegeGroupEntity cur : list) {
|
|
for (PrivilegeGroupEntity cur : list) {
|
|
- PrivilegeGroupBean bean = new PrivilegeGroupBean();
|
|
|
|
|
|
+ PrivilegeGroupDomain bean = new PrivilegeGroupDomain();
|
|
bean.setId(cur.getId());
|
|
bean.setId(cur.getId());
|
|
bean.setAppId(cur.getAppId());
|
|
bean.setAppId(cur.getAppId());
|
|
AppEntity app = appRepo.findOne(cur.getAppId());
|
|
AppEntity app = appRepo.findOne(cur.getAppId());
|