From a927f1a55fc96bbe3e2c63f3d5fd250fc4961055 Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期二, 28 六月 2022 14:35:47 +0800
Subject: [PATCH] 1. 添加pdf相关库
---
src/main/kotlin/cn/flightfeather/supervision/lightshare/web/EvaluationController.kt | 17 +++++++++++++++++
1 files changed, 17 insertions(+), 0 deletions(-)
diff --git a/src/main/kotlin/cn/flightfeather/supervision/lightshare/web/EvaluationController.kt b/src/main/kotlin/cn/flightfeather/supervision/lightshare/web/EvaluationController.kt
index bf504b5..cb04c6e 100644
--- a/src/main/kotlin/cn/flightfeather/supervision/lightshare/web/EvaluationController.kt
+++ b/src/main/kotlin/cn/flightfeather/supervision/lightshare/web/EvaluationController.kt
@@ -78,4 +78,21 @@
@RequestParam("sceneType") sceneType: Int,
response: HttpServletResponse
) = evaluationService.autoScore(year, month, sceneType, response)
+
+
+ @ApiOperation(value = "涓婁紶鑷瘎寰楀垎")
+ @PostMapping("/upload")
+ fun uploadScore(
+ @ApiParam(value = "鐢ㄦ埛id") @RequestParam("userId") userId: String,
+ @ApiParam(value = "璇勫垎鍛ㄦ湡") @RequestParam("period") period: String,
+ @ApiParam(value = "璇勫垎瑙勫垯id") @RequestParam(value = "ruleId", required = false) ruleId: String?,
+ @ApiParam(value = "鍏蜂綋鎵e垎鏉$洰") @RequestBody itemList: List<Pair<String, String>>,
+ ) = evaluationService.uploadScore(userId, period, ruleId, itemList)
+
+ @ApiOperation(value = "鑾峰彇娴嬭瘎璇︽儏")
+ @GetMapping("/detail")
+ fun getDetail(
+ @ApiParam(value = "鐢ㄦ埛id") @RequestParam("userId") userId: String,
+ @ApiParam(value = "璇勫垎鍛ㄦ湡") @RequestParam("period") period: String,
+ ) = evaluationService.getDetail(userId, period)
}
\ No newline at end of file
--
Gitblit v1.9.3