From 23bd719cebe5feeff4e48fde925b0b39755eea93 Mon Sep 17 00:00:00 2001
From: feiyu02 <risaku@163.com>
Date: 星期二, 15 十一月 2022 10:59:50 +0800
Subject: [PATCH] 2022.11.15

---
 src/main/kotlin/cn/flightfeather/supervision/lightshare/web/EvaluationController.kt |   20 +++++++++++++++++++-
 1 files changed, 19 insertions(+), 1 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..2dbd910 100644
--- a/src/main/kotlin/cn/flightfeather/supervision/lightshare/web/EvaluationController.kt
+++ b/src/main/kotlin/cn/flightfeather/supervision/lightshare/web/EvaluationController.kt
@@ -53,8 +53,9 @@
         @ApiParam(value = "鐢ㄦ埛id") @PathVariable("userId") userId: String,
         @ApiParam(value = "椤电爜") @RequestParam(value = "page") page: Int,
         @ApiParam(value = "鍗曢〉鏁版嵁閲�") @RequestParam(value = "per_page") perPage: Int,
+        @ApiParam(value = "鍓嶇骞冲彴") @RequestParam("platform", required = false) platform:String?,
         response: HttpServletResponse
-    ) = evaluationService.getHistoryPoint(userId, page, perPage, response)
+    ) = evaluationService.getHistoryPoint(userId, page, perPage, platform, response)
 
     @ApiOperation(value = "鑾峰彇淇$敤璇勪及缁撴灉")
     @GetMapping("/creditInfo")
@@ -78,4 +79,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