diff --git a/system-setting/backend/src/main/java/io/metersphere/controller/UserController.java b/system-setting/backend/src/main/java/io/metersphere/controller/UserController.java index c8a00d9035..755fc9d2e7 100644 --- a/system-setting/backend/src/main/java/io/metersphere/controller/UserController.java +++ b/system-setting/backend/src/main/java/io/metersphere/controller/UserController.java @@ -60,8 +60,8 @@ public class UserController { return PageUtils.setPageInfo(page, userService.getUserListWithRequest(request)); } - @GetMapping("/special/user/group/{userId}") - public UserGroupPermissionDTO getUserGroup(@PathVariable("userId") String userId) { + @PostMapping("/special/user/group") + public UserGroupPermissionDTO getUserGroup(@RequestBody String userId) { return userService.getUserGroup(userId); } @@ -199,7 +199,7 @@ public class UserController { } @GetMapping("/project/member/delete/{projectId}/{userId}") - @RequiresPermissions(value={PermissionConstants.PROJECT_USER_READ_DELETE, PermissionConstants.WORKSPACE_PROJECT_MANAGER_READ_DELETE_USER}, logical = Logical.OR) + @RequiresPermissions(value = {PermissionConstants.PROJECT_USER_READ_DELETE, PermissionConstants.WORKSPACE_PROJECT_MANAGER_READ_DELETE_USER}, logical = Logical.OR) @MsRequestLog(module = OperLogModule.PROJECT_PROJECT_MEMBER) public void deleteProjectMember(@PathVariable String projectId, @PathVariable String userId) { String currentUserId = SessionUtils.getUser().getId(); diff --git a/system-setting/frontend/src/api/user.js b/system-setting/frontend/src/api/user.js index 384d771fb8..b520245106 100644 --- a/system-setting/frontend/src/api/user.js +++ b/system-setting/frontend/src/api/user.js @@ -47,7 +47,7 @@ export function specialListUsers(data, page, size) { } export function specialGetUserGroup(userId) { - return get(`/user/special/user/group/${userId}`); + return post(`/user/special/user/group`, userId); } export function specialModifyUserDisable(user) {