From 9867f6d5c5bccfe52b878c344c536905dd6b309e Mon Sep 17 00:00:00 2001 From: riku <risaku@163.com> Date: 星期四, 09 六月 2022 08:48:06 +0800 Subject: [PATCH] 1. 接口文档自动输出 --- src/main/kotlin/cn/flightfeather/supervision/lightshare/web/ProblemController.kt | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main/kotlin/cn/flightfeather/supervision/lightshare/web/ProblemController.kt b/src/main/kotlin/cn/flightfeather/supervision/lightshare/web/ProblemController.kt index 21a30f3..db1faf6 100644 --- a/src/main/kotlin/cn/flightfeather/supervision/lightshare/web/ProblemController.kt +++ b/src/main/kotlin/cn/flightfeather/supervision/lightshare/web/ProblemController.kt @@ -3,6 +3,7 @@ import cn.flightfeather.supervision.lightshare.service.ProblemService import io.swagger.annotations.Api import io.swagger.annotations.ApiOperation +import io.swagger.annotations.ApiParam import org.springframework.web.bind.annotation.GetMapping import org.springframework.web.bind.annotation.RequestMapping import org.springframework.web.bind.annotation.RequestParam @@ -16,8 +17,8 @@ @ApiOperation(value = "鏍规嵁骞存湀鑾峰彇鐢ㄦ埛鐨勯棶棰�") @GetMapping("/list") fun getProblemsByPeriod( - @RequestParam("userId") userId: String, - @RequestParam("year") year: Int, - @RequestParam("month") month: Int + @ApiParam("鐢ㄦ埛id") @RequestParam("userId") userId: String, + @ApiParam("骞翠唤") @RequestParam("year") year: Int, + @ApiParam("鏈堜唤") @RequestParam("month") month: Int ) = problemService.getProblemsByPeriod(userId, year, month) } \ No newline at end of file -- Gitblit v1.9.3