接口添加权限
This commit is contained in:
parent
eeb6dd0a70
commit
37de2c2c4e
|
@ -70,6 +70,7 @@ public class UserController {
|
|||
}
|
||||
|
||||
@PostMapping("/special/update_status")
|
||||
@RequiresRoles(RoleConstants.ADMIN)
|
||||
public void updateStatus(@RequestBody User user) {
|
||||
userService.updateUser(user);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue