From 16b961c2210fe29fd494ac1f9d830dd93503961f Mon Sep 17 00:00:00 2001 From: feiyu02 <risaku@163.com> Date: 星期五, 02 八月 2024 17:25:17 +0800 Subject: [PATCH] 1. 新增监测设备的管理功能 --- 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