【修改】 用户操作日志

This commit is contained in:
bupengxiang
2023-08-04 10:27:16 +08:00
parent 8e7ac0a0d8
commit 5523066fe4
3 changed files with 5 additions and 31 deletions
@@ -166,7 +166,7 @@ public class SysUserController {
@RequiresPermissions("user:add")
@PostMapping("/add")
@AutoLog(operateType = 2,value = "user")
@AutoLog(operateType = 2,value = "用户新增")
public Results<Object> add(@RequestBody JSONObject jsonObject) {
try {
String selectedRoles = jsonObject.getString(SELECTED_ROLES);
@@ -221,7 +221,7 @@ public class SysUserController {
@RequiresPermissions("user:edit")
@PostMapping("/edit")
@AutoLog(operateType = 3,value = "user")
@AutoLog(operateType = 3,value = "用户编辑")
public Results<SysUser> edit(@RequestBody JSONObject jsonObject) {
String rsaPublicKey = jsonObject.getString(RSA_PUBLIC_KEY);
String roles = jsonObject.getString(SELECTED_ROLES);
@@ -271,7 +271,7 @@ public class SysUserController {
@PostMapping("/delete")
@RequiresPermissions("sys:user:sel")
@AutoLog(operateType = 4,value = "user")
@AutoLog(operateType = 4,value = "用户删除")
public Results<String> delete(@RequestBody Map<String,String> map) {
long startTime = System.currentTimeMillis();
String id = map.get("id");
@@ -285,7 +285,7 @@ public class SysUserController {
@PostMapping("/deleteBatch")
@RequiresPermissions("sys:user:sel")
@AutoLog(operateType = 4,value = "user")
@AutoLog(operateType = 4,value = "用户批量删除")
public Results<String> deleteBatch(@RequestBody Map<String, String> map) {
String ids = map.get("ids");
if(StringUtils.isBlank(ids)){