提交 37de2c2c 编写于 作者: S shiziyuan9527

接口添加权限

上级 eeb6dd0a
......@@ -70,6 +70,7 @@ public class UserController {
}
@PostMapping("/special/update_status")
@RequiresRoles(RoleConstants.ADMIN)
public void updateStatus(@RequestBody User user) {
userService.updateUser(user);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册