feat: REQ-1650
This commit is contained in:
parent
9e56ef41d6
commit
96ff41ef79
@ -29,8 +29,16 @@ public interface SaasRoleGroupApi {
|
|||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
@PostMapping("/api/saasRoleGroup/getList")
|
@PostMapping("/api/saasRoleGroup/getList")
|
||||||
|
@Deprecated
|
||||||
ApiResult<List<SaasRoleGroupVO>> getList(@RequestBody QuerySaasRoleGroupReq req);
|
ApiResult<List<SaasRoleGroupVO>> getList(@RequestBody QuerySaasRoleGroupReq req);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询自定义角色权限分组列表
|
||||||
|
* @return 返回 角色分组列表
|
||||||
|
*/
|
||||||
|
@PostMapping("/api/saasRoleGroup/getRoleGroupList")
|
||||||
|
ApiResult<List<SaasRoleGroupVO>> getSaasRoleGroupList(@RequestBody QuerySaasRoleGroupReq req);
|
||||||
|
|
||||||
@PostMapping("/api/saasRoleGroup/getById")
|
@PostMapping("/api/saasRoleGroup/getById")
|
||||||
ApiResult<SaasRoleGroupVO> getById(@RequestParam("id") Long id);
|
ApiResult<SaasRoleGroupVO> getById(@RequestParam("id") Long id);
|
||||||
|
|
||||||
|
|||||||
@ -31,6 +31,11 @@ public class SaasRoleGroupController implements SaasRoleGroupApi {
|
|||||||
return ApiResult.ok(saasRoleGroupService.getList(req));
|
return ApiResult.ok(saasRoleGroupService.getList(req));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public ApiResult<List<SaasRoleGroupVO>> getSaasRoleGroupList(QuerySaasRoleGroupReq req) {
|
||||||
|
return ApiResult.ok(saasRoleGroupService.getRoleGroupList(req));
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public ApiResult<SaasRoleGroupVO> getById(Long id) {
|
public ApiResult<SaasRoleGroupVO> getById(Long id) {
|
||||||
List<SaasRoleGroupVO> roleGroups = saasRoleGroupService.getList(QuerySaasRoleGroupReq.builder().ids(Lists.newArrayList(id)).build());
|
List<SaasRoleGroupVO> roleGroups = saasRoleGroupService.getList(QuerySaasRoleGroupReq.builder().ids(Lists.newArrayList(id)).build());
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user