增加swagger说明
parent
2838fde405
commit
b1e0cfd26e
|
@ -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
|
||||
实现功能:
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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
|
Loading…
Reference in New Issue