安全组相关接口url调整

This commit is contained in:
aoshiguchen
2023-12-10 12:07:17 +08:00
parent a369ee1a15
commit faf5ec9bdc
2 changed files with 9 additions and 9 deletions
@@ -30,14 +30,14 @@ public class SecurityController {
* 获取当前用户权限下的安全组
*/
@Get
@Mapping("/group/s")
public List<SecurityGroupRes> getGroups() {
@Mapping("/group/list")
public List<SecurityGroupRes> groupList() {
List<SecurityGroupDO> groupDOList = groupService.queryGroupList();
return groupDOList.stream().map(SecurityGroupDO::toRes).collect(Collectors.toList());
}
@Get
@Mapping("/group/getOne")
@Mapping("/group/detail")
public SecurityGroupRes getGroupOne(Integer groupId) {
return groupService.queryGroupOne(groupId).toRes();
}
@@ -77,8 +77,8 @@ public class SecurityController {
}
@Get
@Mapping("/rule/s")
public List<SecurityRuleRes> getRulesByGroupId(Integer groupId) {
@Mapping("/rule/list")
public List<SecurityRuleRes> getRuleListByGroupId(Integer groupId) {
List<SecurityRuleDO> ruleDOList = groupService.queryRuleListByGroupId(groupId);
return ruleDOList.stream().map(SecurityRuleDO::toRes).collect(Collectors.toList());
}