From 387bd0b18df20a5eb4ddefbdc3d7d8922b02902e Mon Sep 17 00:00:00 2001 From: Moon Date: Sun, 3 Nov 2024 22:32:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=20=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/guaiguailang/harmony/controller/UserController.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/java/com/guaiguailang/harmony/controller/UserController.java b/src/main/java/com/guaiguailang/harmony/controller/UserController.java index d814faf..9fd640a 100644 --- a/src/main/java/com/guaiguailang/harmony/controller/UserController.java +++ b/src/main/java/com/guaiguailang/harmony/controller/UserController.java @@ -49,6 +49,7 @@ public class UserController { description = "加载用户数量(全部、已激活、异常)", tags = {"用户相关接口"} ) + @GetMapping("/num") public ResponseEntity getUserListNum(){ return ResponseEntity.ok(userService.getUserListNum()); @@ -59,7 +60,11 @@ public class UserController { tags = {"用户相关接口"} ) @PostMapping("/add/roleList") + public ResponseEntity getRoleListWhenAddUser(@RequestParam String role){ + /* + 新增用户的时候,需要为 被新增用户选择角色,那么能选择哪些角色?就调用这个接口加载可以分配的角色 + */ // System.out.println("当前用户权限:"+role); return ResponseEntity.ok(userService.getRoleListWhenAddUser(role)); }