From 6fdacca914ef38e6cc91292ef07c5af32bd92991 Mon Sep 17 00:00:00 2001
From: hcong <1050828145@qq.com>
Date: 星期二, 03 十二月 2024 11:12:40 +0800
Subject: [PATCH] 1. BgTask增加onStatusChange参数,通过外界传递如何发送状态改变的消息 2. BackgroundTaskCtrl.kt 创建了BgTask对象并传递了onStatusChange参数 3. WebSocketMessageUtil 类名修改为 WebSocketMessageDecoder 4. SendWebSocketMessageUtil 类名修改为 WebSocketSendMessageUtil

---
 src/main/kotlin/cn/flightfeather/supervision/lightshare/web/ProblemlistController.kt |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diff --git a/src/main/kotlin/cn/flightfeather/supervision/lightshare/web/ProblemlistController.kt b/src/main/kotlin/cn/flightfeather/supervision/lightshare/web/ProblemlistController.kt
index 8baf3fa..7b6154b 100644
--- a/src/main/kotlin/cn/flightfeather/supervision/lightshare/web/ProblemlistController.kt
+++ b/src/main/kotlin/cn/flightfeather/supervision/lightshare/web/ProblemlistController.kt
@@ -104,7 +104,7 @@
 
     @ApiOperation("鏇存柊涓�涓棶棰�")
     @PostMapping("/updateProblem")
-    fun updateDeviceLocation(
+    fun updateProblem(
         @ApiParam("闂淇℃伅json") @RequestParam("problem") problem: String,
         @ApiParam("鍒犻櫎鐨勯棶棰樺浘鐗噄d") @RequestParam("deleteImg") deleteImg: List<String>,
         @ApiParam("闂鍥剧墖") @RequestPart("images") images: Array<MultipartFile>,
@@ -120,6 +120,14 @@
         @RequestPart("images") files: Array<MultipartFile>,
     ) = problemlistService.changeProblem(problemId, files)
 
+    @ApiOperation("鏇存柊涓�涓棶棰樻暣鏀�")
+    @PostMapping("/updateChange")
+    fun updateChange(
+        @ApiParam("闂id") @RequestParam problemId: String,
+        @ApiParam("鍒犻櫎鐨勬暣鏀瑰浘鐗噄d") @RequestParam("deleteImg") deleteImg: List<String>,
+        @ApiParam("鏂板鏁存敼鍥剧墖") @RequestPart("images") images: Array<MultipartFile>,
+    ) = resPack { problemlistService.updateChange(problemId, deleteImg, images) }
+
     @ApiOperation(value = "閫氳繃浠诲姟鏌ユ壘闂")
     @GetMapping("/subtask")
     fun getBySubTask(

--
Gitblit v1.9.3