Explorar o código

增加swagger

zhangyang %!s(int64=2) %!d(string=hai) anos
pai
achega
9175921a3c

+ 11 - 0
ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/PoTetherController.java

@@ -61,6 +61,7 @@ public class PoTetherController extends BaseController
      */
     @PreAuthorize("@ss.hasPermi('system:tether:sellingList')")
     @GetMapping("/sellingList")
+    @ApiOperation("查询套系列表 在售")
     public TableDataInfo sellingList(PoTether poTether)
     {
         startPage();
@@ -70,6 +71,7 @@ public class PoTetherController extends BaseController
     /**
      * 查询套系列表 预售
      */
+    @ApiOperation("查询套系列表 预售")
     @PreAuthorize("@ss.hasPermi('system:tether:advanceList')")
     @GetMapping("/advanceList")
     public TableDataInfo advanceList(PoTether poTether)
@@ -81,6 +83,7 @@ public class PoTetherController extends BaseController
     /**
      * 查询套系列表 已过期
      */
+    @ApiOperation("查询套系列表 已过期")
     @PreAuthorize("@ss.hasPermi('system:tether:selledList')")
     @GetMapping("/selledList")
     public TableDataInfo selledList(PoTether poTether)
@@ -93,6 +96,7 @@ public class PoTetherController extends BaseController
     /**
      * 导出套系列表
      */
+    @ApiOperation("导出套系列表")
     @PreAuthorize("@ss.hasPermi('system:tether:export')")
     @Log(title = "套系", businessType = BusinessType.EXPORT)
     @PostMapping("/export")
@@ -107,6 +111,7 @@ public class PoTetherController extends BaseController
     /**
      * 藏品列表
      */
+    @ApiOperation("藏品列表")
     @PreAuthorize("@ss.hasPermi('system:tether:collectionList')")
     @GetMapping("/collectionList/{tetherId}")
     public TableDataInfo collectionList( @PathVariable("tetherId") Long tetherId){
@@ -119,6 +124,7 @@ public class PoTetherController extends BaseController
     /**
      * 新增套系
      */
+    @ApiOperation("新增套系")
     @PreAuthorize("@ss.hasPermi('system:tether:add')")
     @Log(title = "套系", businessType = BusinessType.INSERT)
     @PostMapping("/add")
@@ -141,6 +147,7 @@ public class PoTetherController extends BaseController
     /**
      * 通过id获取套系详细信息
      */
+    @ApiOperation("通过id获取套系详细信息")
     @PreAuthorize("@ss.hasPermi('system:tether:query')")
     @GetMapping(value = "/{tetherId}")
     public AjaxResult getInfo(@PathVariable("tetherId") Long tetherId)
@@ -152,6 +159,7 @@ public class PoTetherController extends BaseController
     /**
      * 修改套系
      */
+    @ApiOperation("修改套系")
     @PreAuthorize("@ss.hasPermi('system:tether:edit')")
     @Log(title = "套系", businessType = BusinessType.UPDATE)
     @PutMapping("edit")
@@ -188,6 +196,7 @@ public class PoTetherController extends BaseController
     /**
      * 删除套系
      */
+    @ApiOperation("删除套系")
     @PreAuthorize("@ss.hasPermi('system:tether:remove')")
     @Log(title = "套系", businessType = BusinessType.DELETE)
     @DeleteMapping("/remove/{tetherIds}")
@@ -209,6 +218,7 @@ public class PoTetherController extends BaseController
     /**
      * 修改状态 是否上链
      */
+    @ApiOperation("修改状态 是否上链")
     @PreAuthorize("@ss.hasPermi('system:tether:isCochain')")
     @PostMapping("/isCochain/{cochain}/{tetherId}")
     public AjaxResult isCochain( @PathVariable("cochain") Integer cochain , @PathVariable("tetherId") Long tetherId){
@@ -226,6 +236,7 @@ public class PoTetherController extends BaseController
     /**
      * 修改状态 是否上架
      */
+    @ApiOperation("修改状态 是否上架")
     @PreAuthorize("@ss.hasPermi('system:tether:isGrounding')")
     @PostMapping("/isGrounding/{grounding}/{tetherId}")
     public AjaxResult isGrounding( @PathVariable("grounding") Integer grounding , @PathVariable("tetherId") Long tetherId){