From 84569abda51ecf6c5549dec4cadee8d043422379 Mon Sep 17 00:00:00 2001
From: feiyu02 <risaku@163.com>
Date: 星期二, 30 九月 2025 09:33:28 +0800
Subject: [PATCH] 2025.9.30

---
 src/main/kotlin/com/flightfeather/grid/web/ClueTaskController.kt |   37 +++++++++++++++++++++++++++++++++++--
 1 files changed, 35 insertions(+), 2 deletions(-)

diff --git a/src/main/kotlin/com/flightfeather/grid/web/ClueTaskController.kt b/src/main/kotlin/com/flightfeather/grid/web/ClueTaskController.kt
index d449679..322079e 100644
--- a/src/main/kotlin/com/flightfeather/grid/web/ClueTaskController.kt
+++ b/src/main/kotlin/com/flightfeather/grid/web/ClueTaskController.kt
@@ -1,8 +1,9 @@
 package com.flightfeather.grid.web
 
-import com.flightfeather.grid.domain.ds1.entity.ClueConclusion
 import com.flightfeather.grid.domain.ds1.entity.ClueTask
 import com.flightfeather.grid.service.ClueTaskService
+import com.flightfeather.grid.vo.ClueInternalTaskVo
+import com.flightfeather.grid.vo.ClueTaskOptions
 import io.swagger.annotations.Api
 import io.swagger.annotations.ApiOperation
 import io.swagger.annotations.ApiParam
@@ -12,6 +13,12 @@
 @RestController
 @RequestMapping("/clue/task")
 class ClueTaskController(val clueTaskService: ClueTaskService) {
+
+    @ApiOperation("鍒涘缓鍐呴儴绾跨储宸℃煡浠诲姟")
+    @PutMapping("/create/internal")
+    fun createInternalClueTask(
+        @ApiParam("绾跨储浠诲姟") @RequestBody clueInternalTaskVo: ClueInternalTaskVo,
+    ) = resPack { clueTaskService.createInternalClueTask(clueInternalTaskVo) }
 
     @ApiOperation("鍒涘缓绾跨储宸℃煡浠诲姟")
     @PutMapping("/create")
@@ -25,9 +32,35 @@
         @ApiParam("绾跨储浠诲姟") @RequestBody clueTask: ClueTask,
     ) = resPack { clueTaskService.updateClueTask(clueTask) }
 
-    @ApiOperation("鑾峰彇绾跨储缁撹")
+    @ApiOperation("鏌ヨ绾跨储浠诲姟")
     @PostMapping("/fetch")
     fun getClueTask(
         @ApiParam("绾跨储浠诲姟") @RequestBody clueTask: ClueTask,
     ) = resPack { clueTaskService.getClueTask(clueTask) }
+
+    @ApiOperation("鏌ヨ绾跨储浠诲姟")
+    @PostMapping("/search")
+    fun searchClueTask(
+        @RequestParam("page", required = false) page: Int?,
+        @RequestParam("per_page", required = false) perPage: Int?,
+        @ApiParam("绾跨储浠诲姟鏌ヨ鏉′欢") @RequestBody clueTaskOptions: ClueTaskOptions,
+    ) = resPack { clueTaskService.searchClueTask(clueTaskOptions, page, perPage) }
+
+    @ApiOperation("鍒犻櫎绾跨储浠诲姟")
+    @DeleteMapping("/delete")
+    fun deleteClueTask(
+        @ApiParam("绾跨储浠诲姟") @RequestBody clueTask: ClueTask,
+    ) = resPack { clueTaskService.deleteClueTask(clueTask) }
+
+    @ApiOperation("鏌ヨ绾跨储浠诲姟瀹屾垚鎯呭喌缁熻")
+    @PostMapping("/summary")
+    fun getClueTaskSummary(
+        @ApiParam("绾跨储浠诲姟鏌ヨ鏉′欢") @RequestBody clueTaskOptions: ClueTaskOptions,
+    ) = resPack { clueTaskService.getClueTaskSummary(clueTaskOptions) }
+
+    @ApiOperation("瀹屾垚绾跨储浠诲姟")
+    @PostMapping("/finish")
+    fun finishClueTask(
+        @ApiParam("绾跨储浠诲姟id") @RequestParam clueTaskId: String,
+    ) = resPack { clueTaskService.finishClueTask(clueTaskId) }
 }
\ No newline at end of file

--
Gitblit v1.9.3