|
@@ -64,6 +64,7 @@ public class SysUserController {
|
|
*/
|
|
*/
|
|
@GetMapping(value = "/getAll")
|
|
@GetMapping(value = "/getAll")
|
|
@PreAuthorize("@ss.hasPermi('system:user:list')")
|
|
@PreAuthorize("@ss.hasPermi('system:user:list')")
|
|
|
|
+ @OperateLog(title = "用户管理", businessType = BusinessType.QUERY, auditType = AuditType.SYS,operdesc = "用户查询")
|
|
@PreventReplay
|
|
@PreventReplay
|
|
public ResponseVO getAll(String username, String phonenumber,
|
|
public ResponseVO getAll(String username, String phonenumber,
|
|
String status) throws CustomException {
|
|
String status) throws CustomException {
|
|
@@ -132,7 +133,7 @@ public class SysUserController {
|
|
* 新增用户
|
|
* 新增用户
|
|
*/
|
|
*/
|
|
@PostMapping(value = "/addUser")
|
|
@PostMapping(value = "/addUser")
|
|
- @OperateLog(title = "用户管理", businessType = BusinessType.INSERT, auditType = AuditType.SYS)
|
|
|
|
|
|
+ @OperateLog(title = "用户管理", businessType = BusinessType.INSERT, auditType = AuditType.SYS,operdesc = "新增用户")
|
|
@PreAuthorize("@ss.hasPermi('system:user:add')")
|
|
@PreAuthorize("@ss.hasPermi('system:user:add')")
|
|
@PreventReplay
|
|
@PreventReplay
|
|
public ResponseVO addUser(@RequestBody SysUser user) throws CustomException {
|
|
public ResponseVO addUser(@RequestBody SysUser user) throws CustomException {
|
|
@@ -260,7 +261,7 @@ public class SysUserController {
|
|
*/
|
|
*/
|
|
@PostMapping(value = "/updateUser")
|
|
@PostMapping(value = "/updateUser")
|
|
@AgainVerify
|
|
@AgainVerify
|
|
- @OperateLog(title = "用户管理", businessType = BusinessType.UPDATE, auditType = AuditType.SYS)
|
|
|
|
|
|
+ @OperateLog(title = "用户管理", businessType = BusinessType.UPDATE, auditType = AuditType.SYS,operdesc = "修改用户")
|
|
@PreAuthorize("@ss.hasPermi('system:user:edit')")
|
|
@PreAuthorize("@ss.hasPermi('system:user:edit')")
|
|
@PreventReplay
|
|
@PreventReplay
|
|
public ResponseVO updateUser(@RequestBody SysUser user) throws CustomException {
|
|
public ResponseVO updateUser(@RequestBody SysUser user) throws CustomException {
|
|
@@ -377,7 +378,7 @@ public class SysUserController {
|
|
* 初始密码发送邮箱
|
|
* 初始密码发送邮箱
|
|
*/
|
|
*/
|
|
@PostMapping(value = "/resetPassword")
|
|
@PostMapping(value = "/resetPassword")
|
|
- @OperateLog(title = "用户管理", businessType = BusinessType.OTHER, auditType = AuditType.SYS)
|
|
|
|
|
|
+ @OperateLog(title = "用户管理", businessType = BusinessType.RESETPWD, auditType = AuditType.SYS,operdesc = "初始/重置密码发送邮箱")
|
|
@PreAuthorize("@ss.hasPermi('system:user:send')")
|
|
@PreAuthorize("@ss.hasPermi('system:user:send')")
|
|
@PreventReplay
|
|
@PreventReplay
|
|
public ResponseVO resetPassword(String id) {
|
|
public ResponseVO resetPassword(String id) {
|
|
@@ -430,7 +431,7 @@ public class SysUserController {
|
|
*/
|
|
*/
|
|
@PostMapping(value = "/delUser")
|
|
@PostMapping(value = "/delUser")
|
|
@AgainVerify
|
|
@AgainVerify
|
|
- @OperateLog(title = "用户管理", businessType = BusinessType.DELETE, auditType = AuditType.SYS)
|
|
|
|
|
|
+ @OperateLog(title = "用户管理", businessType = BusinessType.DELETE, auditType = AuditType.SYS,operdesc = "删除用户")
|
|
@PreAuthorize("@ss.hasPermi('system:user:remove')")
|
|
@PreAuthorize("@ss.hasPermi('system:user:remove')")
|
|
@PreventReplay
|
|
@PreventReplay
|
|
public ResponseVO delete(String id) throws CustomException {
|
|
public ResponseVO delete(String id) throws CustomException {
|
|
@@ -473,7 +474,7 @@ public class SysUserController {
|
|
* 修改密码
|
|
* 修改密码
|
|
*/
|
|
*/
|
|
@PostMapping(value = "/updatePassword")
|
|
@PostMapping(value = "/updatePassword")
|
|
- @OperateLog(title = "用户管理", businessType = BusinessType.UPDATE, auditType = AuditType.SYS)
|
|
|
|
|
|
+ @OperateLog(title = "用户管理", businessType = BusinessType.PWDUPDATE, auditType = AuditType.SYS,operdesc = "修改个人密码")
|
|
@PreventReplay
|
|
@PreventReplay
|
|
public ResponseVO updatePassword(String id, String oldPassword, String newPassword, String confirmPassword) throws CustomException {
|
|
public ResponseVO updatePassword(String id, String oldPassword, String newPassword, String confirmPassword) throws CustomException {
|
|
try {
|
|
try {
|
|
@@ -557,7 +558,7 @@ public class SysUserController {
|
|
* 解锁用户信息
|
|
* 解锁用户信息
|
|
*/
|
|
*/
|
|
@PostMapping(value = "/relockUser")
|
|
@PostMapping(value = "/relockUser")
|
|
- @OperateLog(title = "用户管理", businessType = BusinessType.OTHER, auditType = AuditType.SYS)
|
|
|
|
|
|
+ @OperateLog(title = "用户管理", businessType = BusinessType.UNLOCK, auditType = AuditType.SYS,operdesc = "用户账号解锁")
|
|
@PreAuthorize("@ss.hasPermi('system:user:relock')")
|
|
@PreAuthorize("@ss.hasPermi('system:user:relock')")
|
|
@PreventReplay
|
|
@PreventReplay
|
|
public ResponseVO relockUser(String id) throws CustomException {
|
|
public ResponseVO relockUser(String id) throws CustomException {
|
|
@@ -603,7 +604,7 @@ public class SysUserController {
|
|
*/
|
|
*/
|
|
@PostMapping("/authRole")
|
|
@PostMapping("/authRole")
|
|
@PreAuthorize("@ss.hasPermi('system:user:role')")
|
|
@PreAuthorize("@ss.hasPermi('system:user:role')")
|
|
- @OperateLog(title = "用户管理", businessType = BusinessType.GRANT, auditType = AuditType.SYS)
|
|
|
|
|
|
+ @OperateLog(title = "用户管理", businessType = BusinessType.GRANT, auditType = AuditType.SYS,operdesc = "用户授权角色")
|
|
@PreventReplay
|
|
@PreventReplay
|
|
public ResponseVO authRole(String userId, String roleId) throws CustomException {
|
|
public ResponseVO authRole(String userId, String roleId) throws CustomException {
|
|
try {
|
|
try {
|
|
@@ -667,6 +668,7 @@ public class SysUserController {
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
@GetMapping("/getUserRole")
|
|
@GetMapping("/getUserRole")
|
|
|
|
+ @OperateLog(title = "用户管理", businessType = BusinessType.GETROLE, auditType = AuditType.SYS,operdesc = "获取授权角色信息")
|
|
@PreventReplay
|
|
@PreventReplay
|
|
public ResponseVO getUserRole(Long userId) throws CustomException {
|
|
public ResponseVO getUserRole(Long userId) throws CustomException {
|
|
try {
|
|
try {
|
|
@@ -705,7 +707,7 @@ public class SysUserController {
|
|
*/
|
|
*/
|
|
@PostMapping(value = "/logOffUser")
|
|
@PostMapping(value = "/logOffUser")
|
|
@AgainVerify
|
|
@AgainVerify
|
|
- @OperateLog(title = "用户管理", businessType = BusinessType.DELETE, auditType = AuditType.SYS)
|
|
|
|
|
|
+ @OperateLog(title = "用户管理", businessType = BusinessType.DELETE, auditType = AuditType.SYS,operdesc = "注销用户账号")
|
|
@PreAuthorize("@ss.hasPermi('system:user:logoff')")
|
|
@PreAuthorize("@ss.hasPermi('system:user:logoff')")
|
|
@PreventReplay
|
|
@PreventReplay
|
|
public ResponseVO logOffUser(String id) throws CustomException {
|
|
public ResponseVO logOffUser(String id) throws CustomException {
|
|
@@ -767,6 +769,7 @@ public class SysUserController {
|
|
*/
|
|
*/
|
|
@GetMapping(value = "/getUserByHealthy")
|
|
@GetMapping(value = "/getUserByHealthy")
|
|
@PreAuthorize("@ss.hasPermi('monitor:onLine:list')")
|
|
@PreAuthorize("@ss.hasPermi('monitor:onLine:list')")
|
|
|
|
+ @OperateLog(title = "在线用户管理", businessType = BusinessType.QUERY, auditType = AuditType.SYS,operdesc = "在线用户查询")
|
|
@PreventReplay
|
|
@PreventReplay
|
|
public ResponseVO getUserByHealthy(String currentPage, String pageSize, String onLineStatus) throws CustomException {
|
|
public ResponseVO getUserByHealthy(String currentPage, String pageSize, String onLineStatus) throws CustomException {
|
|
try {
|
|
try {
|