From 498a502c023c8e33049965fa85d8ed209c4546e0 Mon Sep 17 00:00:00 2001
From: qdxkrs <39894542+qdxkrs@users.noreply.github.com>
Date: Tue, 24 May 2022 12:01:43 +0800
Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0swagger=20=E6=96=B0=E7=95=8C?=
=?UTF-8?q?=E9=9D=A2?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
ruoyi-admin/pom.xml | 8 ++++-
.../yada/ThematicMapController.java | 13 +++++++-
ruoyi-ui/src/views/tool/swagger/index.vue | 31 ++++++++++---------
3 files changed, 35 insertions(+), 17 deletions(-)
diff --git a/ruoyi-admin/pom.xml b/ruoyi-admin/pom.xml
index 403482559..4f8dd03b3 100644
--- a/ruoyi-admin/pom.xml
+++ b/ruoyi-admin/pom.xml
@@ -34,7 +34,13 @@
io.swagger
swagger-models
- 1.6.2
+ 1.6.6
+
+
+
+ com.github.xiaoymin
+ knife4j-spring-boot-starter
+ 3.0.3
diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/yada/ThematicMapController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/yada/ThematicMapController.java
index ad0e78381..9614dd462 100644
--- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/yada/ThematicMapController.java
+++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/yada/ThematicMapController.java
@@ -3,6 +3,7 @@ package com.ruoyi.web.controller.yada;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.system.domain_yada.ThematicMapDomain;
import com.ruoyi.system.service_yada.ThematicMapService;
+import io.swagger.annotations.*;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
@@ -16,10 +17,12 @@ import java.time.LocalDateTime;
import java.util.List;
/**
- * 中国城市监测
+ * 专题图模块
+ * @author taco chen
*/
@RestController
@RequestMapping(value = "/thematic-map")
+@Api(tags = "专题图模块")
public class ThematicMapController {
@Resource
@@ -31,6 +34,14 @@ public class ThematicMapController {
* @param request 客户端请求
* @return 参数类
*/
+ @ApiOperation("获取所有专题图")
+ @ApiImplicitParams({})
+ @ApiResponses({
+ @ApiResponse(code =200,message = "请求成功"),
+ @ApiResponse(code =401,message = "没有认证"),
+ @ApiResponse(code =403,message = "权限不足"),
+ @ApiResponse(code =404,message = "未找到")
+ })
@RequestMapping(value = "/get/all",method = {RequestMethod.GET})
public AjaxResult selectAllThematicMap(HttpServletResponse response, HttpServletRequest request)
{
diff --git a/ruoyi-ui/src/views/tool/swagger/index.vue b/ruoyi-ui/src/views/tool/swagger/index.vue
index 750189115..7c57b68db 100644
--- a/ruoyi-ui/src/views/tool/swagger/index.vue
+++ b/ruoyi-ui/src/views/tool/swagger/index.vue
@@ -1,15 +1,16 @@
-
-
-
-
+
+
+
+