Browse Source

swagger依赖

develop
lau572 11 months ago
parent
commit
535a0b1504
  1. 13
      zc-business/pom.xml
  2. 5
      zc-business/src/main/java/com/zc/business/controller/DcProcessConfigController.java

13
zc-business/pom.xml

@ -15,6 +15,18 @@
<groupId>com.ruoyi</groupId>
<artifactId>ruoyi-common</artifactId>
</dependency>
<dependency>
<groupId>io.springfox</groupId>
<artifactId>springfox-boot-starter</artifactId>
<version>${swagger.version}</version>
<exclusions>
<exclusion>
<groupId>io.swagger</groupId>
<artifactId>swagger-models</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
<groupId>com.zc</groupId>
<version>1.0.0</version>
@ -23,6 +35,7 @@
<maven.compiler.source>8</maven.compiler.source>
<maven.compiler.target>8</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<swagger.version>3.0.0</swagger.version>
</properties>
</project>

5
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)

Loading…
Cancel
Save