From 7f0432762534d1c2e742062d3ca67968a606086f Mon Sep 17 00:00:00 2001 From: 疯狂的狮子li <15040126243@163.com> Date: 星期五, 08 七月 2022 19:17:48 +0800 Subject: [PATCH] update 优化 自定义 openapi 处理器 彻底实现零注解无入侵生成文档 --- ruoyi-admin/src/main/java/com/ruoyi/web/controller/monitor/SysOperlogController.java | 13 ++++++++++++- 1 files changed, 12 insertions(+), 1 deletions(-) diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/monitor/SysOperlogController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/monitor/SysOperlogController.java index d7dcff4..3684c2d 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/monitor/SysOperlogController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/monitor/SysOperlogController.java @@ -24,7 +24,6 @@ * @author Lion Li */ @Validated -@Tag(name ="鎿嶄綔鏃ュ織璁板綍", description = "鎿嶄綔鏃ュ織璁板綍绠$悊") @RequiredArgsConstructor @RestController @RequestMapping("/monitor/operlog") @@ -32,12 +31,18 @@ private final ISysOperLogService operLogService; + /** + * 鑾峰彇鎿嶄綔鏃ュ織璁板綍鍒楄〃 + */ @SaCheckPermission("monitor:operlog:list") @GetMapping("/list") public TableDataInfo<SysOperLog> list(SysOperLog operLog, PageQuery pageQuery) { return operLogService.selectPageOperLogList(operLog, pageQuery); } + /** + * 瀵煎嚭鎿嶄綔鏃ュ織璁板綍鍒楄〃 + */ @Log(title = "鎿嶄綔鏃ュ織", businessType = BusinessType.EXPORT) @SaCheckPermission("monitor:operlog:export") @PostMapping("/export") @@ -46,6 +51,9 @@ ExcelUtil.exportExcel(list, "鎿嶄綔鏃ュ織", SysOperLog.class, response); } + /** + * 鑾峰彇鎿嶄綔鏃ュ織璁板綍璇︽儏 + */ @Log(title = "鎿嶄綔鏃ュ織", businessType = BusinessType.DELETE) @SaCheckPermission("monitor:operlog:remove") @DeleteMapping("/{operIds}") @@ -53,6 +61,9 @@ return toAjax(operLogService.deleteOperLogByIds(operIds)); } + /** + * 娓呯悊鎿嶄綔鏃ュ織璁板綍 + */ @Log(title = "鎿嶄綔鏃ュ織", businessType = BusinessType.CLEAN) @SaCheckPermission("monitor:operlog:remove") @DeleteMapping("/clean") -- Gitblit v1.9.3