✨ 添加预览模式.
This commit is contained in:
@@ -4,10 +4,10 @@ Content-Type: application/json
|
||||
Authorization: {{token}}
|
||||
|
||||
{
|
||||
"key": "",
|
||||
"valueType": "",
|
||||
"extraSchema": "",
|
||||
"description": ""
|
||||
"keyName": "operatorLogType",
|
||||
"valueType": "1",
|
||||
"extraSchema": "{}",
|
||||
"description": "1"
|
||||
}
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ Authorization: {{token}}
|
||||
|
||||
{
|
||||
"id": "",
|
||||
"key": "",
|
||||
"keyName": "",
|
||||
"valueType": "",
|
||||
"extraSchema": "",
|
||||
"description": ""
|
||||
|
||||
@@ -4,6 +4,7 @@ import com.orion.lang.define.wrapper.DataGrid;
|
||||
import com.orion.visor.framework.biz.operator.log.core.annotation.OperatorLog;
|
||||
import com.orion.visor.framework.log.core.annotation.IgnoreLog;
|
||||
import com.orion.visor.framework.log.core.enums.IgnoreLogMode;
|
||||
import com.orion.visor.framework.web.core.annotation.PreviewDisableApi;
|
||||
import com.orion.visor.framework.web.core.annotation.RestWrapper;
|
||||
import com.orion.visor.module.infra.define.operator.DictKeyOperatorType;
|
||||
import com.orion.visor.module.infra.entity.request.dict.DictKeyCreateRequest;
|
||||
@@ -41,6 +42,7 @@ public class DictKeyController {
|
||||
@Resource
|
||||
private DictKeyService dictKeyService;
|
||||
|
||||
@PreviewDisableApi
|
||||
@OperatorLog(DictKeyOperatorType.CREATE)
|
||||
@PostMapping("/create")
|
||||
@Operation(summary = "创建字典配置项")
|
||||
@@ -49,6 +51,7 @@ public class DictKeyController {
|
||||
return dictKeyService.createDictKey(request);
|
||||
}
|
||||
|
||||
@PreviewDisableApi
|
||||
@OperatorLog(DictKeyOperatorType.UPDATE)
|
||||
@PutMapping("/update")
|
||||
@Operation(summary = "更新字典配置项")
|
||||
@@ -80,6 +83,7 @@ public class DictKeyController {
|
||||
return true;
|
||||
}
|
||||
|
||||
@PreviewDisableApi
|
||||
@OperatorLog(DictKeyOperatorType.DELETE)
|
||||
@DeleteMapping("/delete")
|
||||
@Operation(summary = "删除字典配置项")
|
||||
@@ -89,6 +93,7 @@ public class DictKeyController {
|
||||
return dictKeyService.deleteDictKeyById(id);
|
||||
}
|
||||
|
||||
@PreviewDisableApi
|
||||
@OperatorLog(DictKeyOperatorType.DELETE)
|
||||
@DeleteMapping("/batch-delete")
|
||||
@Operation(summary = "批量删除字典配置项")
|
||||
|
||||
@@ -6,6 +6,7 @@ import com.orion.visor.framework.biz.operator.log.core.annotation.OperatorLog;
|
||||
import com.orion.visor.framework.common.validator.group.Page;
|
||||
import com.orion.visor.framework.log.core.annotation.IgnoreLog;
|
||||
import com.orion.visor.framework.log.core.enums.IgnoreLogMode;
|
||||
import com.orion.visor.framework.web.core.annotation.PreviewDisableApi;
|
||||
import com.orion.visor.framework.web.core.annotation.RestWrapper;
|
||||
import com.orion.visor.module.infra.define.operator.DictValueOperatorType;
|
||||
import com.orion.visor.module.infra.entity.request.dict.DictValueCreateRequest;
|
||||
@@ -45,6 +46,7 @@ public class DictValueController {
|
||||
@Resource
|
||||
private DictValueService dictValueService;
|
||||
|
||||
@PreviewDisableApi
|
||||
@OperatorLog(DictValueOperatorType.CREATE)
|
||||
@PostMapping("/create")
|
||||
@Operation(summary = "创建字典配置值")
|
||||
@@ -53,6 +55,7 @@ public class DictValueController {
|
||||
return dictValueService.createDictValue(request);
|
||||
}
|
||||
|
||||
@PreviewDisableApi
|
||||
@OperatorLog(DictValueOperatorType.UPDATE)
|
||||
@PutMapping("/update")
|
||||
@Operation(summary = "更新字典配置值")
|
||||
@@ -61,6 +64,7 @@ public class DictValueController {
|
||||
return dictValueService.updateDictValueById(request);
|
||||
}
|
||||
|
||||
@PreviewDisableApi
|
||||
@OperatorLog(DictValueOperatorType.UPDATE)
|
||||
@PutMapping("/rollback")
|
||||
@Operation(summary = "回滚字典配置值")
|
||||
@@ -84,6 +88,7 @@ public class DictValueController {
|
||||
return dictValueService.getDictValuePage(request);
|
||||
}
|
||||
|
||||
@PreviewDisableApi
|
||||
@OperatorLog(DictValueOperatorType.DELETE)
|
||||
@DeleteMapping("/delete")
|
||||
@Operation(summary = "删除字典配置值")
|
||||
@@ -93,6 +98,7 @@ public class DictValueController {
|
||||
return dictValueService.deleteDictValueById(id);
|
||||
}
|
||||
|
||||
@PreviewDisableApi
|
||||
@OperatorLog(DictValueOperatorType.DELETE)
|
||||
@DeleteMapping("/batch-delete")
|
||||
@Operation(summary = "批量删除字典配置值")
|
||||
|
||||
@@ -5,6 +5,7 @@ import com.orion.visor.framework.biz.operator.log.core.annotation.OperatorLog;
|
||||
import com.orion.visor.framework.common.validator.group.Page;
|
||||
import com.orion.visor.framework.log.core.annotation.IgnoreLog;
|
||||
import com.orion.visor.framework.log.core.enums.IgnoreLogMode;
|
||||
import com.orion.visor.framework.web.core.annotation.PreviewDisableApi;
|
||||
import com.orion.visor.framework.web.core.annotation.RestWrapper;
|
||||
import com.orion.visor.module.infra.define.operator.AuthenticationOperatorType;
|
||||
import com.orion.visor.module.infra.entity.request.operator.OperatorLogQueryRequest;
|
||||
@@ -57,6 +58,7 @@ public class MineController {
|
||||
return mineService.updateCurrentUser(request);
|
||||
}
|
||||
|
||||
@PreviewDisableApi
|
||||
@OperatorLog(AuthenticationOperatorType.UPDATE_PASSWORD)
|
||||
@Operation(summary = "修改当前用户密码")
|
||||
@PutMapping("/update-password")
|
||||
@@ -79,6 +81,7 @@ public class MineController {
|
||||
return mineService.getCurrentUserSessionList();
|
||||
}
|
||||
|
||||
@PreviewDisableApi
|
||||
@PutMapping("/offline-session")
|
||||
@Operation(summary = "下线当前用户会话")
|
||||
public Boolean offlineCurrentUserSession(@Validated @RequestBody UserSessionOfflineRequest request) {
|
||||
|
||||
@@ -3,6 +3,7 @@ package com.orion.visor.module.infra.controller;
|
||||
import com.orion.visor.framework.biz.operator.log.core.annotation.OperatorLog;
|
||||
import com.orion.visor.framework.log.core.annotation.IgnoreLog;
|
||||
import com.orion.visor.framework.log.core.enums.IgnoreLogMode;
|
||||
import com.orion.visor.framework.web.core.annotation.PreviewDisableApi;
|
||||
import com.orion.visor.framework.web.core.annotation.RestWrapper;
|
||||
import com.orion.visor.module.infra.define.operator.SystemMenuOperatorType;
|
||||
import com.orion.visor.module.infra.entity.request.menu.SystemMenuCreateRequest;
|
||||
@@ -41,6 +42,7 @@ public class SystemMenuController {
|
||||
@Resource
|
||||
private SystemMenuService systemMenuService;
|
||||
|
||||
@PreviewDisableApi
|
||||
@OperatorLog(SystemMenuOperatorType.CREATE)
|
||||
@PostMapping("/create")
|
||||
@Operation(summary = "创建菜单")
|
||||
@@ -49,6 +51,7 @@ public class SystemMenuController {
|
||||
return systemMenuService.createSystemMenu(request);
|
||||
}
|
||||
|
||||
@PreviewDisableApi
|
||||
@OperatorLog(SystemMenuOperatorType.UPDATE)
|
||||
@PutMapping("/update")
|
||||
@Operation(summary = "通过 id 更新菜单")
|
||||
@@ -57,6 +60,7 @@ public class SystemMenuController {
|
||||
return systemMenuService.updateSystemMenuById(request);
|
||||
}
|
||||
|
||||
@PreviewDisableApi
|
||||
@OperatorLog(SystemMenuOperatorType.UPDATE_STATUS)
|
||||
@PutMapping("/update-status")
|
||||
@Operation(summary = "通过 id 级联更新菜单状态")
|
||||
@@ -82,6 +86,7 @@ public class SystemMenuController {
|
||||
return systemMenuService.getSystemMenuByIdList(request);
|
||||
}
|
||||
|
||||
@PreviewDisableApi
|
||||
@OperatorLog(SystemMenuOperatorType.DELETE)
|
||||
@DeleteMapping("/delete")
|
||||
@Operation(summary = "通过 id 级联删除菜单")
|
||||
|
||||
@@ -5,6 +5,7 @@ import com.orion.visor.framework.biz.operator.log.core.annotation.OperatorLog;
|
||||
import com.orion.visor.framework.common.validator.group.Page;
|
||||
import com.orion.visor.framework.log.core.annotation.IgnoreLog;
|
||||
import com.orion.visor.framework.log.core.enums.IgnoreLogMode;
|
||||
import com.orion.visor.framework.web.core.annotation.PreviewDisableApi;
|
||||
import com.orion.visor.framework.web.core.annotation.RestWrapper;
|
||||
import com.orion.visor.module.infra.define.operator.SystemRoleOperatorType;
|
||||
import com.orion.visor.module.infra.entity.request.menu.SystemRoleGrantMenuRequest;
|
||||
@@ -64,6 +65,7 @@ public class SystemRoleController {
|
||||
return systemRoleService.updateSystemRoleById(request);
|
||||
}
|
||||
|
||||
@PreviewDisableApi
|
||||
@OperatorLog(SystemRoleOperatorType.UPDATE_STATUS)
|
||||
@PutMapping("/update-status")
|
||||
@Operation(summary = "通过 id 更新角色状态")
|
||||
@@ -105,6 +107,7 @@ public class SystemRoleController {
|
||||
return systemRoleMenuService.getRoleMenuIdList(roleId);
|
||||
}
|
||||
|
||||
@PreviewDisableApi
|
||||
@OperatorLog(SystemRoleOperatorType.DELETE)
|
||||
@DeleteMapping("/delete")
|
||||
@Operation(summary = "通过 id 删除角色")
|
||||
|
||||
@@ -6,6 +6,7 @@ import com.orion.visor.framework.biz.operator.log.core.annotation.OperatorLog;
|
||||
import com.orion.visor.framework.common.validator.group.Page;
|
||||
import com.orion.visor.framework.log.core.annotation.IgnoreLog;
|
||||
import com.orion.visor.framework.log.core.enums.IgnoreLogMode;
|
||||
import com.orion.visor.framework.web.core.annotation.PreviewDisableApi;
|
||||
import com.orion.visor.framework.web.core.annotation.RestWrapper;
|
||||
import com.orion.visor.module.infra.define.operator.SystemUserOperatorType;
|
||||
import com.orion.visor.module.infra.entity.request.user.*;
|
||||
@@ -73,6 +74,7 @@ public class SystemUserController {
|
||||
|
||||
// TODO 修改头像 最后再说 可有可无的功能 要是有 http 文件需求就写
|
||||
|
||||
@PreviewDisableApi
|
||||
@OperatorLog(SystemUserOperatorType.UPDATE_STATUS)
|
||||
@PutMapping("/update-status")
|
||||
@Operation(summary = "修改用户状态")
|
||||
@@ -95,6 +97,7 @@ public class SystemUserController {
|
||||
}
|
||||
}
|
||||
|
||||
@PreviewDisableApi
|
||||
@OperatorLog(SystemUserOperatorType.RESET_PASSWORD)
|
||||
@PutMapping("/reset-password")
|
||||
@Operation(summary = "重置用户密码")
|
||||
@@ -137,6 +140,7 @@ public class SystemUserController {
|
||||
return systemUserService.getSystemUserPage(request);
|
||||
}
|
||||
|
||||
@PreviewDisableApi
|
||||
@OperatorLog(SystemUserOperatorType.DELETE)
|
||||
@DeleteMapping("/delete")
|
||||
@Operation(summary = "通过 id 删除用户")
|
||||
@@ -154,6 +158,7 @@ public class SystemUserController {
|
||||
return systemUserManagementService.getUserSessionList(id);
|
||||
}
|
||||
|
||||
@PreviewDisableApi
|
||||
@OperatorLog(SystemUserOperatorType.OFFLINE)
|
||||
@PutMapping("/session/offline")
|
||||
@Operation(summary = "下线用户会话")
|
||||
|
||||
Reference in New Issue
Block a user