From 535a0b15048f87a657cf4ed54f588e088d02bedd Mon Sep 17 00:00:00 2001 From: lau572 <1010031226@qq.com> Date: Wed, 3 Jan 2024 17:17:49 +0800 Subject: [PATCH] =?UTF-8?q?swagger=E4=BE=9D=E8=B5=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- zc-business/pom.xml | 13 +++++++++++++ .../controller/DcProcessConfigController.java | 5 +++++ 2 files changed, 18 insertions(+) diff --git a/zc-business/pom.xml b/zc-business/pom.xml index 5ad78e86..2494454f 100644 --- a/zc-business/pom.xml +++ b/zc-business/pom.xml @@ -15,6 +15,18 @@ com.ruoyi ruoyi-common + + + io.springfox + springfox-boot-starter + ${swagger.version} + + + io.swagger + swagger-models + + + com.zc 1.0.0 @@ -23,6 +35,7 @@ 8 8 UTF-8 + 3.0.0 diff --git a/zc-business/src/main/java/com/zc/business/controller/DcProcessConfigController.java b/zc-business/src/main/java/com/zc/business/controller/DcProcessConfigController.java index feb1edc7..bba4c870 100644 --- a/zc-business/src/main/java/com/zc/business/controller/DcProcessConfigController.java +++ b/zc-business/src/main/java/com/zc/business/controller/DcProcessConfigController.java @@ -2,6 +2,9 @@ package com.zc.business.controller; 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 @@ import com.ruoyi.common.core.page.TableDataInfo; * @author ruoyi * @date 2024-01-03 */ +@Api("事件流程配置") @RestController @RequestMapping("/system/dcProcessConfig") public class DcProcessConfigController extends BaseController @@ -37,6 +41,7 @@ public class DcProcessConfigController extends BaseController /** * 查询事件流程配置列表 */ + @ApiOperation("查询事件流程配置列表") @PreAuthorize("@ss.hasPermi('system:dcProcessConfig:list')") @GetMapping("/list") public TableDataInfo list(DcProcessConfig dcProcessConfig)