修改 注释
This commit is contained in:
parent
adc270d0ef
commit
387bd0b18d
@ -49,6 +49,7 @@ public class UserController {
|
|||||||
description = "加载用户数量(全部、已激活、异常)",
|
description = "加载用户数量(全部、已激活、异常)",
|
||||||
tags = {"用户相关接口"}
|
tags = {"用户相关接口"}
|
||||||
)
|
)
|
||||||
|
|
||||||
@GetMapping("/num")
|
@GetMapping("/num")
|
||||||
public ResponseEntity getUserListNum(){
|
public ResponseEntity getUserListNum(){
|
||||||
return ResponseEntity.ok(userService.getUserListNum());
|
return ResponseEntity.ok(userService.getUserListNum());
|
||||||
@ -59,7 +60,11 @@ public class UserController {
|
|||||||
tags = {"用户相关接口"}
|
tags = {"用户相关接口"}
|
||||||
)
|
)
|
||||||
@PostMapping("/add/roleList")
|
@PostMapping("/add/roleList")
|
||||||
|
|
||||||
public ResponseEntity getRoleListWhenAddUser(@RequestParam String role){
|
public ResponseEntity getRoleListWhenAddUser(@RequestParam String role){
|
||||||
|
/*
|
||||||
|
新增用户的时候,需要为 被新增用户选择角色,那么能选择哪些角色?就调用这个接口加载可以分配的角色
|
||||||
|
*/
|
||||||
// System.out.println("当前用户权限:"+role);
|
// System.out.println("当前用户权限:"+role);
|
||||||
return ResponseEntity.ok(userService.getRoleListWhenAddUser(role));
|
return ResponseEntity.ok(userService.getRoleListWhenAddUser(role));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user