From 79bd8ea222cc3518ec91dce3dfb30fcf387cf96d Mon Sep 17 00:00:00 2001
From: feiyu02 <risaku@163.com>
Date: 星期五, 25 四月 2025 16:45:13 +0800
Subject: [PATCH] 新增应急巡查线索任务相关接口

---
 src/main/kotlin/com/flightfeather/grid/web/ClueTaskController.kt |   16 ++++++++++++++--
 1 files changed, 14 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..c6e1dab 100644
--- a/src/main/kotlin/com/flightfeather/grid/web/ClueTaskController.kt
+++ b/src/main/kotlin/com/flightfeather/grid/web/ClueTaskController.kt
@@ -1,8 +1,8 @@
 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 io.swagger.annotations.Api
 import io.swagger.annotations.ApiOperation
 import io.swagger.annotations.ApiParam
@@ -12,6 +12,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 +31,15 @@
         @ApiParam("绾跨储浠诲姟") @RequestBody clueTask: ClueTask,
     ) = resPack { clueTaskService.updateClueTask(clueTask) }
 
-    @ApiOperation("鑾峰彇绾跨储缁撹")
+    @ApiOperation("鏌ヨ绾跨储浠诲姟")
     @PostMapping("/fetch")
     fun getClueTask(
         @ApiParam("绾跨储浠诲姟") @RequestBody clueTask: ClueTask,
     ) = resPack { clueTaskService.getClueTask(clueTask) }
+
+    @ApiOperation("鍒犻櫎绾跨储浠诲姟")
+    @DeleteMapping("/delete")
+    fun deleteClueTask(
+        @ApiParam("绾跨储浠诲姟") @RequestBody clueTask: ClueTask,
+    ) = resPack { clueTaskService.deleteClueTask(clueTask) }
 }
\ No newline at end of file

--
Gitblit v1.9.3