接口添加权限

This commit is contained in:
shiziyuan9527 2020-05-27 14:45:06 +08:00
parent eeb6dd0a70
commit 37de2c2c4e
1 changed files with 1 additions and 0 deletions

View File

@ -70,6 +70,7 @@ public class UserController {
}
@PostMapping("/special/update_status")
@RequiresRoles(RoleConstants.ADMIN)
public void updateStatus(@RequestBody User user) {
userService.updateUser(user);
}