增加swagger说明

pull/1/head
wangziyangyang 2020-03-06 13:26:53 +08:00
parent 2838fde405
commit b1e0cfd26e
3 changed files with 13 additions and 7 deletions

View File

@ -14,7 +14,7 @@
![1](https://s2.ax1x.com/2020/03/06/3bQbMd.png)
### swaggerAPI管理界面
![](https://s2.ax1x.com/2020/03/06/3qC4Yt.png)
## 技术架构
### springBoot+mybatis-plus+redis+shiro+hutool+layui+jenkins+swagger+freemarker
实现功能:

View File

@ -7,6 +7,9 @@ import com.songpeng.sparchetype.basedata.service.ISpTableManagerService;
import com.songpeng.sparchetype.common.BaseController;
import com.songpeng.sparchetype.common.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
@ -17,13 +20,13 @@ import org.springframework.web.bind.annotation.ResponseBody;
/**
* <p>
*
*
* </p>
*
* @author WangZiYang
* @since 2020-03-06
*/
@Api("主数据管理")
@Api(tags = "主数据管理")
@Controller
@RequestMapping("/basedata/")
public class SpTableManagerController extends BaseController {
@ -32,10 +35,13 @@ public class SpTableManagerController extends BaseController {
Logger log = LoggerFactory.getLogger(SpTableManagerController.class);
/**
*
*
* @param req
* @return
* @param req
* @return Result
*/
@ApiOperation("主数据表头分页查询")
@ApiImplicitParams({@ApiImplicitParam(name = "req", value = "请求参数", defaultValue = "请求参数")})
@PostMapping("/page")
@ResponseBody
public Result page(SpTableManagerReq req) {

View File

@ -13,6 +13,6 @@ swagger:
description: MES接口管理
enable: true
license: wangziyang
licenseUrl: https://www.cnblogs.com
title: Api 测试
licenseUrl: https://gitee.com/wangziyangyang/MES-Sprongboot
title: 王子杨的API 管理
version: 1.0.0