feat: REQ-1650

This commit is contained in:
zuoqinbo 2023-11-30 18:19:49 +08:00
parent 9e56ef41d6
commit 96ff41ef79
2 changed files with 13 additions and 0 deletions

View File

@ -29,8 +29,16 @@ public interface SaasRoleGroupApi {
* @return
*/
@PostMapping("/api/saasRoleGroup/getList")
@Deprecated
ApiResult<List<SaasRoleGroupVO>> getList(@RequestBody QuerySaasRoleGroupReq req);
/**
* 查询自定义角色权限分组列表
* @return 返回 角色分组列表
*/
@PostMapping("/api/saasRoleGroup/getRoleGroupList")
ApiResult<List<SaasRoleGroupVO>> getSaasRoleGroupList(@RequestBody QuerySaasRoleGroupReq req);
@PostMapping("/api/saasRoleGroup/getById")
ApiResult<SaasRoleGroupVO> getById(@RequestParam("id") Long id);

View File

@ -31,6 +31,11 @@ public class SaasRoleGroupController implements SaasRoleGroupApi {
return ApiResult.ok(saasRoleGroupService.getList(req));
}
@Override
public ApiResult<List<SaasRoleGroupVO>> getSaasRoleGroupList(QuerySaasRoleGroupReq req) {
return ApiResult.ok(saasRoleGroupService.getRoleGroupList(req));
}
@Override
public ApiResult<SaasRoleGroupVO> getById(Long id) {
List<SaasRoleGroupVO> roleGroups = saasRoleGroupService.getList(QuerySaasRoleGroupReq.builder().ids(Lists.newArrayList(id)).build());