diff --git a/README.md b/README.md index c069fd9..557f506 100644 --- a/README.md +++ b/README.md @@ -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 实现功能: diff --git a/sparchetype/src/main/java/com/songpeng/sparchetype/basedata/controller/SpTableManagerController.java b/sparchetype/src/main/java/com/songpeng/sparchetype/basedata/controller/SpTableManagerController.java index 9660879..c72d0a5 100644 --- a/sparchetype/src/main/java/com/songpeng/sparchetype/basedata/controller/SpTableManagerController.java +++ b/sparchetype/src/main/java/com/songpeng/sparchetype/basedata/controller/SpTableManagerController.java @@ -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; /** *

- * 前端控制器 + * 前端控制器 *

* * @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) { diff --git a/sparchetype/src/main/resources/application.yml b/sparchetype/src/main/resources/application.yml index be011ba..584e7ea 100644 --- a/sparchetype/src/main/resources/application.yml +++ b/sparchetype/src/main/resources/application.yml @@ -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 \ No newline at end of file