✨ 添加演示模式.
This commit is contained in:
@@ -4,7 +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.DemoDisableApi;
|
||||
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;
|
||||
@@ -42,7 +42,7 @@ public class DictKeyController {
|
||||
@Resource
|
||||
private DictKeyService dictKeyService;
|
||||
|
||||
@PreviewDisableApi
|
||||
@DemoDisableApi
|
||||
@OperatorLog(DictKeyOperatorType.CREATE)
|
||||
@PostMapping("/create")
|
||||
@Operation(summary = "创建字典配置项")
|
||||
@@ -51,7 +51,7 @@ public class DictKeyController {
|
||||
return dictKeyService.createDictKey(request);
|
||||
}
|
||||
|
||||
@PreviewDisableApi
|
||||
@DemoDisableApi
|
||||
@OperatorLog(DictKeyOperatorType.UPDATE)
|
||||
@PutMapping("/update")
|
||||
@Operation(summary = "更新字典配置项")
|
||||
@@ -83,7 +83,7 @@ public class DictKeyController {
|
||||
return true;
|
||||
}
|
||||
|
||||
@PreviewDisableApi
|
||||
@DemoDisableApi
|
||||
@OperatorLog(DictKeyOperatorType.DELETE)
|
||||
@DeleteMapping("/delete")
|
||||
@Operation(summary = "删除字典配置项")
|
||||
@@ -93,7 +93,7 @@ public class DictKeyController {
|
||||
return dictKeyService.deleteDictKeyById(id);
|
||||
}
|
||||
|
||||
@PreviewDisableApi
|
||||
@DemoDisableApi
|
||||
@OperatorLog(DictKeyOperatorType.DELETE)
|
||||
@DeleteMapping("/batch-delete")
|
||||
@Operation(summary = "批量删除字典配置项")
|
||||
|
||||
@@ -6,7 +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.DemoDisableApi;
|
||||
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;
|
||||
@@ -46,7 +46,7 @@ public class DictValueController {
|
||||
@Resource
|
||||
private DictValueService dictValueService;
|
||||
|
||||
@PreviewDisableApi
|
||||
@DemoDisableApi
|
||||
@OperatorLog(DictValueOperatorType.CREATE)
|
||||
@PostMapping("/create")
|
||||
@Operation(summary = "创建字典配置值")
|
||||
@@ -55,7 +55,7 @@ public class DictValueController {
|
||||
return dictValueService.createDictValue(request);
|
||||
}
|
||||
|
||||
@PreviewDisableApi
|
||||
@DemoDisableApi
|
||||
@OperatorLog(DictValueOperatorType.UPDATE)
|
||||
@PutMapping("/update")
|
||||
@Operation(summary = "更新字典配置值")
|
||||
@@ -64,7 +64,7 @@ public class DictValueController {
|
||||
return dictValueService.updateDictValueById(request);
|
||||
}
|
||||
|
||||
@PreviewDisableApi
|
||||
@DemoDisableApi
|
||||
@OperatorLog(DictValueOperatorType.UPDATE)
|
||||
@PutMapping("/rollback")
|
||||
@Operation(summary = "回滚字典配置值")
|
||||
@@ -88,7 +88,7 @@ public class DictValueController {
|
||||
return dictValueService.getDictValuePage(request);
|
||||
}
|
||||
|
||||
@PreviewDisableApi
|
||||
@DemoDisableApi
|
||||
@OperatorLog(DictValueOperatorType.DELETE)
|
||||
@DeleteMapping("/delete")
|
||||
@Operation(summary = "删除字典配置值")
|
||||
@@ -98,7 +98,7 @@ public class DictValueController {
|
||||
return dictValueService.deleteDictValueById(id);
|
||||
}
|
||||
|
||||
@PreviewDisableApi
|
||||
@DemoDisableApi
|
||||
@OperatorLog(DictValueOperatorType.DELETE)
|
||||
@DeleteMapping("/batch-delete")
|
||||
@Operation(summary = "批量删除字典配置值")
|
||||
|
||||
@@ -5,7 +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.DemoDisableApi;
|
||||
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;
|
||||
@@ -58,7 +58,7 @@ public class MineController {
|
||||
return mineService.updateCurrentUser(request);
|
||||
}
|
||||
|
||||
@PreviewDisableApi
|
||||
@DemoDisableApi
|
||||
@OperatorLog(AuthenticationOperatorType.UPDATE_PASSWORD)
|
||||
@Operation(summary = "修改当前用户密码")
|
||||
@PutMapping("/update-password")
|
||||
@@ -81,7 +81,7 @@ public class MineController {
|
||||
return mineService.getCurrentUserSessionList();
|
||||
}
|
||||
|
||||
@PreviewDisableApi
|
||||
@DemoDisableApi
|
||||
@PutMapping("/offline-session")
|
||||
@Operation(summary = "下线当前用户会话")
|
||||
public Boolean offlineCurrentUserSession(@Validated @RequestBody UserSessionOfflineRequest request) {
|
||||
|
||||
@@ -3,7 +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.DemoDisableApi;
|
||||
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;
|
||||
@@ -42,7 +42,7 @@ public class SystemMenuController {
|
||||
@Resource
|
||||
private SystemMenuService systemMenuService;
|
||||
|
||||
@PreviewDisableApi
|
||||
@DemoDisableApi
|
||||
@OperatorLog(SystemMenuOperatorType.CREATE)
|
||||
@PostMapping("/create")
|
||||
@Operation(summary = "创建菜单")
|
||||
@@ -51,7 +51,7 @@ public class SystemMenuController {
|
||||
return systemMenuService.createSystemMenu(request);
|
||||
}
|
||||
|
||||
@PreviewDisableApi
|
||||
@DemoDisableApi
|
||||
@OperatorLog(SystemMenuOperatorType.UPDATE)
|
||||
@PutMapping("/update")
|
||||
@Operation(summary = "通过 id 更新菜单")
|
||||
@@ -60,7 +60,7 @@ public class SystemMenuController {
|
||||
return systemMenuService.updateSystemMenuById(request);
|
||||
}
|
||||
|
||||
@PreviewDisableApi
|
||||
@DemoDisableApi
|
||||
@OperatorLog(SystemMenuOperatorType.UPDATE_STATUS)
|
||||
@PutMapping("/update-status")
|
||||
@Operation(summary = "通过 id 级联更新菜单状态")
|
||||
@@ -86,7 +86,7 @@ public class SystemMenuController {
|
||||
return systemMenuService.getSystemMenuByIdList(request);
|
||||
}
|
||||
|
||||
@PreviewDisableApi
|
||||
@DemoDisableApi
|
||||
@OperatorLog(SystemMenuOperatorType.DELETE)
|
||||
@DeleteMapping("/delete")
|
||||
@Operation(summary = "通过 id 级联删除菜单")
|
||||
|
||||
@@ -5,7 +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.DemoDisableApi;
|
||||
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;
|
||||
@@ -65,7 +65,7 @@ public class SystemRoleController {
|
||||
return systemRoleService.updateSystemRoleById(request);
|
||||
}
|
||||
|
||||
@PreviewDisableApi
|
||||
@DemoDisableApi
|
||||
@OperatorLog(SystemRoleOperatorType.UPDATE_STATUS)
|
||||
@PutMapping("/update-status")
|
||||
@Operation(summary = "通过 id 更新角色状态")
|
||||
@@ -107,7 +107,7 @@ public class SystemRoleController {
|
||||
return systemRoleMenuService.getRoleMenuIdList(roleId);
|
||||
}
|
||||
|
||||
@PreviewDisableApi
|
||||
@DemoDisableApi
|
||||
@OperatorLog(SystemRoleOperatorType.DELETE)
|
||||
@DeleteMapping("/delete")
|
||||
@Operation(summary = "通过 id 删除角色")
|
||||
|
||||
@@ -6,7 +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.DemoDisableApi;
|
||||
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.*;
|
||||
@@ -74,7 +74,7 @@ public class SystemUserController {
|
||||
|
||||
// TODO 修改头像 最后再说 可有可无的功能 要是有 http 文件需求就写
|
||||
|
||||
@PreviewDisableApi
|
||||
@DemoDisableApi
|
||||
@OperatorLog(SystemUserOperatorType.UPDATE_STATUS)
|
||||
@PutMapping("/update-status")
|
||||
@Operation(summary = "修改用户状态")
|
||||
@@ -97,7 +97,7 @@ public class SystemUserController {
|
||||
}
|
||||
}
|
||||
|
||||
@PreviewDisableApi
|
||||
@DemoDisableApi
|
||||
@OperatorLog(SystemUserOperatorType.RESET_PASSWORD)
|
||||
@PutMapping("/reset-password")
|
||||
@Operation(summary = "重置用户密码")
|
||||
@@ -140,7 +140,7 @@ public class SystemUserController {
|
||||
return systemUserService.getSystemUserPage(request);
|
||||
}
|
||||
|
||||
@PreviewDisableApi
|
||||
@DemoDisableApi
|
||||
@OperatorLog(SystemUserOperatorType.DELETE)
|
||||
@DeleteMapping("/delete")
|
||||
@Operation(summary = "通过 id 删除用户")
|
||||
@@ -158,7 +158,7 @@ public class SystemUserController {
|
||||
return systemUserManagementService.getUserSessionList(id);
|
||||
}
|
||||
|
||||
@PreviewDisableApi
|
||||
@DemoDisableApi
|
||||
@OperatorLog(SystemUserOperatorType.OFFLINE)
|
||||
@PutMapping("/session/offline")
|
||||
@Operation(summary = "下线用户会话")
|
||||
|
||||
Reference in New Issue
Block a user