zhangyang пре 2 година
родитељ
комит
e60cc2d984

+ 8 - 0
ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/PoNewsFileController.java

@@ -2,6 +2,8 @@ package com.ruoyi.web.controller.system;
 
 import java.util.List;
 import javax.servlet.http.HttpServletResponse;
+
+import io.swagger.annotations.ApiOperation;
 import org.springframework.security.access.prepost.PreAuthorize;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.web.bind.annotation.GetMapping;
@@ -35,6 +37,7 @@ public class PoNewsFileController extends BaseController
     /**
      * 查询信息文件列表
      */
+    @ApiOperation("查询信息文件列表")
     @PreAuthorize("@ss.hasPermi('system:file:list')")
     @GetMapping("/list")
     public TableDataInfo list(PoNewsFile poNewsFile)
@@ -47,6 +50,7 @@ public class PoNewsFileController extends BaseController
     /**
      * 导出信息文件列表
      */
+    @ApiOperation("导出信息文件列表")
     @PreAuthorize("@ss.hasPermi('system:file:export')")
     @Log(title = "【请填写功能名称】", businessType = BusinessType.EXPORT)
     @PostMapping("/export")
@@ -60,6 +64,7 @@ public class PoNewsFileController extends BaseController
     /**
      * 获取信息文件详细信息
      */
+    @ApiOperation("获取信息文件详细信息")
     @PreAuthorize("@ss.hasPermi('system:file:query')")
     @GetMapping(value = "/{fileId}")
     public AjaxResult getInfo(@PathVariable("fileId") Long fileId)
@@ -70,6 +75,7 @@ public class PoNewsFileController extends BaseController
     /**
      * 新增信息文件
      */
+    @ApiOperation("新增信息文件")
     @PreAuthorize("@ss.hasPermi('system:file:add')")
     @Log(title = "信息文件", businessType = BusinessType.INSERT)
     @PostMapping
@@ -81,6 +87,7 @@ public class PoNewsFileController extends BaseController
     /**
      * 修改信息文件
      */
+    @ApiOperation("修改信息文件")
     @PreAuthorize("@ss.hasPermi('system:file:edit')")
     @Log(title = "信息文件", businessType = BusinessType.UPDATE)
     @PutMapping
@@ -92,6 +99,7 @@ public class PoNewsFileController extends BaseController
     /**
      * 删除信息文件
      */
+    @ApiOperation("删除信息文件")
     @PreAuthorize("@ss.hasPermi('system:file:remove')")
     @Log(title = "信息文件", businessType = BusinessType.DELETE)
     @DeleteMapping("/{fileIds}")

+ 7 - 0
ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/PoOperLogController.java

@@ -8,6 +8,7 @@ import com.ruoyi.common.enums.BusinessType;
 import com.ruoyi.common.utils.poi.ExcelUtil;
 import com.ruoyi.system.domain.PoOperLog;
 import com.ruoyi.system.service.IPoOperLogService;
+import io.swagger.annotations.ApiOperation;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.security.access.prepost.PreAuthorize;
 import org.springframework.web.bind.annotation.*;
@@ -29,6 +30,7 @@ public class PoOperLogController extends BaseController
     /**
      * 查询操作日志记录列表
      */
+    @ApiOperation("查询操作日志记录列表")
     @PreAuthorize("@ss.hasPermi('post:operlog:list')")
     @GetMapping("/list")
     public TableDataInfo list(PoOperLog poOperLog)
@@ -41,6 +43,7 @@ public class PoOperLogController extends BaseController
     /**
      * 导出操作日志记录列表
      */
+    @ApiOperation("导出日志列表")
     @PreAuthorize("@ss.hasPermi('post:operlog:export')")
     @Log(title = "操作日志记录", businessType = BusinessType.EXPORT)
     @PostMapping("/export")
@@ -54,6 +57,7 @@ public class PoOperLogController extends BaseController
     /**
      * 获取操作日志记录详细信息
      */
+    @ApiOperation("获取操作日志详细信息")
     @PreAuthorize("@ss.hasPermi('post:operlog:query')")
     @GetMapping(value = "/{operId}")
     public AjaxResult getInfo(@PathVariable("operId") Long operId)
@@ -64,6 +68,7 @@ public class PoOperLogController extends BaseController
     /**
      * 新增操作日志记录
      */
+    @ApiOperation("新增操作日志")
     @PreAuthorize("@ss.hasPermi('post:operlog:add')")
     @Log(title = "操作日志记录", businessType = BusinessType.INSERT)
     @PostMapping("/add")
@@ -75,6 +80,7 @@ public class PoOperLogController extends BaseController
     /**
      * 修改操作日志记录
      */
+    @ApiOperation("修改操作日志")
     @PreAuthorize("@ss.hasPermi('post:operlog:edit')")
     @Log(title = "操作日志记录", businessType = BusinessType.UPDATE)
     @PutMapping("/edit")
@@ -86,6 +92,7 @@ public class PoOperLogController extends BaseController
     /**
      * 删除操作日志记录
      */
+    @ApiOperation("删除操作日志")
     @PreAuthorize("@ss.hasPermi('post:operlog:remove')")
     @Log(title = "操作日志记录", businessType = BusinessType.DELETE)
     @DeleteMapping("/remove/{operIds}")

+ 9 - 0
ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/PoUserController.java

@@ -13,6 +13,7 @@ import com.ruoyi.common.utils.StringUtils;
 import com.ruoyi.common.utils.poi.ExcelUtil;
 import com.ruoyi.system.domain.PoUser;
 import com.ruoyi.system.service.IPoUserService;
+import io.swagger.annotations.ApiOperation;
 import org.apache.catalina.User;
 import org.apache.commons.lang3.ArrayUtils;
 import org.springframework.beans.factory.annotation.Autowired;
@@ -40,6 +41,7 @@ public class PoUserController extends BaseController
     /**
      * 查询用户列表
      */
+    @ApiOperation("查询用户列表")
     @PreAuthorize("@ss.hasPermi('system:user:list')")
     @GetMapping("/list")
     public TableDataInfo list(PoUser poUser)
@@ -52,6 +54,7 @@ public class PoUserController extends BaseController
     /**
      * 导出用户列表
      */
+    @ApiOperation("导出用户列表")
     @PreAuthorize("@ss.hasPermi('system:user:export')")
     @Log(title = "被分配权限的用户", businessType = BusinessType.EXPORT)
     @PostMapping("/export")
@@ -65,6 +68,7 @@ public class PoUserController extends BaseController
     /**
      * 根据用户编号获取详细信息
      */
+    @ApiOperation("根据用户编号获取详细信息")
     @PreAuthorize("@ss.hasPermi('system:user:query')")
     @GetMapping(value = { "/", "/{userId}" })
     public AjaxResult getInfo(@PathVariable(value = "userId", required = false) Long userId)
@@ -82,6 +86,7 @@ public class PoUserController extends BaseController
     /**
      * 新增分配权限用户
      */
+    @ApiOperation("新增用户")
     @PreAuthorize("@ss.hasPermi('system:user:add')")
     @Log(title = "获得权限用户", businessType = BusinessType.INSERT)
     @PostMapping("/add")
@@ -102,6 +107,7 @@ public class PoUserController extends BaseController
     /**
      * 修改用户
      */
+    @ApiOperation("修改用户")
     @PreAuthorize("@ss.hasPermi('system:user:edit')")
     @Log(title = "修改权限用户", businessType = BusinessType.UPDATE)
     @PutMapping("/edit")
@@ -131,6 +137,7 @@ public class PoUserController extends BaseController
     /**
      * 删除用户
      */
+    @ApiOperation("删除用户")
     @PreAuthorize("@ss.hasPermi('system:user:remove')")
     @Log(title = "删除权限用户", businessType = BusinessType.DELETE)
     @DeleteMapping("/{userIds}")
@@ -146,6 +153,7 @@ public class PoUserController extends BaseController
     /**
      * 重置密码
      */
+    @ApiOperation("重置密码")
     @PreAuthorize("@ss.hasPermi('system:user:resetPwd')")
     @Log(title = "用户管理", businessType = BusinessType.UPDATE)
     @PutMapping("/resetPwd")
@@ -162,6 +170,7 @@ public class PoUserController extends BaseController
     /**
      * 状态修改
      */
+    @ApiOperation("状态修改")
     @PreAuthorize("@ss.hasPermi('system:user:edit')")
     @Log(title = "用户管理", businessType = BusinessType.UPDATE)
     @PutMapping("/changeStatus")