删除系统用户 去除权限

This commit is contained in:
liuchengqian 2022-05-12 17:18:58 +08:00
parent 6593241be0
commit de4ed40ea3

View File

@ -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);
}