From b5c7ca7264740d6e32c5f3f8966f294134aa6fc2 Mon Sep 17 00:00:00 2001
From: liusheng <337615773@qq.com>
Date: 星期四, 08 六月 2023 16:54:37 +0800
Subject: [PATCH] 宣教加swagger

---
 ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/HeCategoryController.java |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/HeCategoryController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/HeCategoryController.java
index 0967405..eb5a4c4 100644
--- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/HeCategoryController.java
+++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/HeCategoryController.java
@@ -2,6 +2,9 @@
 
 import java.util.List;
 import javax.servlet.http.HttpServletResponse;
+
+import io.swagger.annotations.Api;
+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;
@@ -27,6 +30,7 @@
  * @author smartor
  * @date 2023-03-04
  */
+@Api("瀹f暀鍒嗙被")
 @RestController
 @RequestMapping("/smartor/hecategory")
 public class HeCategoryController extends BaseController
@@ -37,6 +41,7 @@
     /**
      * 鏌ヨ瀹f暀鍒嗙被鍒楄〃
      */
+    @ApiOperation("鏌ヨ鎮h�呮。妗堝垪琛�")
     @PreAuthorize("@ss.hasPermi('smartor:hecategory:list')")
     @GetMapping("/list")
     public TableDataInfo list(HeCategory heCategory)
@@ -49,6 +54,7 @@
     /**
      * 瀵煎嚭瀹f暀鍒嗙被鍒楄〃
      */
+    @ApiOperation("瀵煎嚭瀹f暀鍒嗙被鍒楄〃")
     @PreAuthorize("@ss.hasPermi('smartor:hecategory:export')")
     @Log(title = "瀹f暀鍒嗙被", businessType = BusinessType.EXPORT)
     @PostMapping("/export")
@@ -62,6 +68,7 @@
     /**
      * 鑾峰彇瀹f暀鍒嗙被璇︾粏淇℃伅
      */
+    @ApiOperation("鑾峰彇瀹f暀鍒嗙被璇︾粏淇℃伅")
     @PreAuthorize("@ss.hasPermi('smartor:hecategory:query')")
     @GetMapping(value = "/{id}")
     public AjaxResult getInfo(@PathVariable("id") Long id)
@@ -72,6 +79,7 @@
     /**
      * 鏂板瀹f暀鍒嗙被
      */
+    @ApiOperation("鏂板瀹f暀鍒嗙被")
     @PreAuthorize("@ss.hasPermi('smartor:hecategory:add')")
     @Log(title = "瀹f暀鍒嗙被", businessType = BusinessType.INSERT)
     @PostMapping
@@ -83,6 +91,7 @@
     /**
      * 淇敼瀹f暀鍒嗙被
      */
+    @ApiOperation("淇敼瀹f暀鍒嗙被")
     @PreAuthorize("@ss.hasPermi('smartor:hecategory:edit')")
     @Log(title = "瀹f暀鍒嗙被", businessType = BusinessType.UPDATE)
     @PutMapping
@@ -94,6 +103,7 @@
     /**
      * 鍒犻櫎瀹f暀鍒嗙被
      */
+    @ApiOperation("鍒犻櫎瀹f暀鍒嗙被")
     @PreAuthorize("@ss.hasPermi('smartor:hecategory:remove')")
     @Log(title = "瀹f暀鍒嗙被", businessType = BusinessType.DELETE)
 	@DeleteMapping("/{ids}")

--
Gitblit v1.9.3