From de4ed40ea30c06342ea61be6ab255c22d0df821e Mon Sep 17 00:00:00 2001 From: liuchengqian Date: Thu, 12 May 2022 17:18:58 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E7=B3=BB=E7=BB=9F=E7=94=A8?= =?UTF-8?q?=E6=88=B7=20=E5=8E=BB=E9=99=A4=E6=9D=83=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/xkrs/controller/SysUserController.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/xkrs/controller/SysUserController.java b/src/main/java/com/xkrs/controller/SysUserController.java index ab18beb..b890ddc 100644 --- a/src/main/java/com/xkrs/controller/SysUserController.java +++ b/src/main/java/com/xkrs/controller/SysUserController.java @@ -88,8 +88,13 @@ public class SysUserController { return sysUserService.addUser(userQo); } + /** + * 删除系统用户 + * + * @param userName 用户名 + * @return + */ @RequestMapping(value = "/general/deletesysuser", method = RequestMethod.DELETE) - @PreAuthorize("hasAnyAuthority('auth_system_manager','auth_general_user')") public String deleteSysUser(@RequestParam(value = "userName") String userName) { return sysUserService.deleteSysUser(userName); }