From 82baf5d28ce79aa4d3b64956207d247596726924 Mon Sep 17 00:00:00 2001
From: hcong <1050828145@qq.com>
Date: 星期二, 10 十二月 2024 11:21:33 +0800
Subject: [PATCH] 1. BgTaskStatus状态属性序列化
---
src/main/kotlin/cn/flightfeather/supervision/lightshare/web/TaskController.kt | 12 ++++++++++++
1 files changed, 12 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..dafb2b7 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鎺ュ彛")
@@ -12,6 +14,9 @@
@PutMapping
fun save(@RequestBody task: Task) = taskService.save(task)
+
+ @PutMapping("/create")
+ fun create(@RequestBody task: Task) = resPack { taskService.create(task) }
@PostMapping
fun update(@RequestBody task: Task) = taskService.update(task)
@@ -61,4 +66,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