From bd40c80eea0074f02a08d210a14bb0695243948f Mon Sep 17 00:00:00 2001
From: feiyu02 <risaku@163.com>
Date: 星期一, 04 七月 2022 16:15:10 +0800
Subject: [PATCH] 1. 承诺书pdf生产模块
---
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