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/ComplaintController.kt |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/main/kotlin/cn/flightfeather/supervision/lightshare/web/ComplaintController.kt b/src/main/kotlin/cn/flightfeather/supervision/lightshare/web/ComplaintController.kt
index fbb1315..008fec5 100644
--- a/src/main/kotlin/cn/flightfeather/supervision/lightshare/web/ComplaintController.kt
+++ b/src/main/kotlin/cn/flightfeather/supervision/lightshare/web/ComplaintController.kt
@@ -3,6 +3,8 @@
 import cn.flightfeather.supervision.lightshare.service.ComplaintService
 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
@@ -13,13 +15,15 @@
 @RequestMapping("/complaint")
 class ComplaintController(val complaintService: ComplaintService) {
 
+    @ApiOperation(value = "鑾峰彇淇¤鎶曡瘔淇℃伅")
     @GetMapping("")
     fun getComplaints(
-            @RequestParam("userId") userId: String
+        @ApiParam(value = "鐢ㄦ埛id") @RequestParam("userId") userId: String
     ) = complaintService.getComplaints(userId)
 
+    @ApiOperation(value = "鑾峰彇琛屾斂澶勭綒淇℃伅")
     @GetMapping("/punishment")
     fun getPunishment(
-            @RequestParam("userId") userId: String
+        @ApiParam(value = "鐢ㄦ埛id") @RequestParam("userId") userId: String
     ) = complaintService.getPunishment(userId)
 }
\ No newline at end of file

--
Gitblit v1.9.3