From b212ef0208cb094f63ea8a239a1361f8e859c839 Mon Sep 17 00:00:00 2001
From: feiyu02 <risaku@163.com>
Date: 星期一, 08 七月 2024 17:40:39 +0800
Subject: [PATCH] 2024.7.8

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

diff --git a/src/main/kotlin/cn/flightfeather/supervision/lightshare/web/TaskController.kt b/src/main/kotlin/cn/flightfeather/supervision/lightshare/web/TaskController.kt
index 5920dda..41d6006 100644
--- a/src/main/kotlin/cn/flightfeather/supervision/lightshare/web/TaskController.kt
+++ b/src/main/kotlin/cn/flightfeather/supervision/lightshare/web/TaskController.kt
@@ -2,7 +2,9 @@
 
 import cn.flightfeather.supervision.domain.ds1.entity.Task
 import cn.flightfeather.supervision.lightshare.service.TaskService
+import cn.flightfeather.supervision.lightshare.vo.AreaVo
 import io.swagger.annotations.Api
+import io.swagger.annotations.ApiOperation
 import org.springframework.web.bind.annotation.*
 
 @Api(tags = ["TaskController"], description = "宸℃煡鎬讳换鍔″拰鏃ヤ换鍔PI鎺ュ彛")
@@ -61,4 +63,11 @@
     fun getRank(@RequestParam(value = "id", required = true) id: String,
                 @RequestParam(value = "curSceneTypeId", required = true) sceneTypeId: String,
                 @RequestParam(value = "sceneId", required = false) sceneId: String?) = taskService.getRank(id, sceneTypeId, sceneId)
+
+    @PostMapping("/find")
+    fun findTask(@RequestBody areaVo: AreaVo) = resPack { taskService.findTask(areaVo) }
+
+    @ApiOperation(value = "鑾峰彇鎬讳换鍔$殑瀹屾垚鎯呭喌")
+    @PostMapping("/progress")
+    fun findTaskProgress(@RequestBody areaVo: AreaVo) = resPack { taskService.findTaskProgress(areaVo) }
 }

--
Gitblit v1.9.3