删除系统用户 去除权限
This commit is contained in:
parent
6593241be0
commit
de4ed40ea3
@ -88,8 +88,13 @@ public class SysUserController {
|
|||||||
return sysUserService.addUser(userQo);
|
return sysUserService.addUser(userQo);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除系统用户
|
||||||
|
*
|
||||||
|
* @param userName 用户名
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
@RequestMapping(value = "/general/deletesysuser", method = RequestMethod.DELETE)
|
@RequestMapping(value = "/general/deletesysuser", method = RequestMethod.DELETE)
|
||||||
@PreAuthorize("hasAnyAuthority('auth_system_manager','auth_general_user')")
|
|
||||||
public String deleteSysUser(@RequestParam(value = "userName") String userName) {
|
public String deleteSysUser(@RequestParam(value = "userName") String userName) {
|
||||||
return sysUserService.deleteSysUser(userName);
|
return sysUserService.deleteSysUser(userName);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user