From 53857f42f777e2b9753b8f00cce1a60ce3dcb8fd Mon Sep 17 00:00:00 2001
From: Riku <risaku@163.com>
Date: 星期三, 15 十月 2025 22:42:29 +0800
Subject: [PATCH] 2025.10.15 修改高德地图地理逆编码结果,让地理位置信息更加详细
---
src/main/kotlin/com/flightfeather/uav/lightshare/web/MissionController.kt | 23 ++++++++++++++++++++---
1 files changed, 20 insertions(+), 3 deletions(-)
diff --git a/src/main/kotlin/com/flightfeather/uav/lightshare/web/MissionController.kt b/src/main/kotlin/com/flightfeather/uav/lightshare/web/MissionController.kt
index e8ccb52..eeb0fc7 100644
--- a/src/main/kotlin/com/flightfeather/uav/lightshare/web/MissionController.kt
+++ b/src/main/kotlin/com/flightfeather/uav/lightshare/web/MissionController.kt
@@ -4,6 +4,7 @@
import com.flightfeather.uav.lightshare.service.MissionService
import io.swagger.annotations.Api
import org.springframework.web.bind.annotation.*
+import javax.servlet.http.HttpServletResponse
@Api(tags = ["璧拌埅鐩戞祴浠诲姟API鎺ュ彛"])
@RestController
@@ -15,15 +16,31 @@
@RequestParam(value = "type", required = false) type: String?,
@RequestParam(value = "page", required = false) page: Int?,
@RequestParam(value = "perPage", required = false) perPage: Int?
- ) = missionService.getMission(type, page, perPage)
+ ) = resPack { missionService.getMission(type, page, perPage) }
@PostMapping("/create")
fun createMission(
@RequestBody mission: Mission
- ) = missionService.createMission(mission)
+ ) = resPack { missionService.createMission(mission) }
+
+ @PostMapping("/update")
+ fun updateMission(
+ @RequestBody mission: Mission
+ ) = resPack { missionService.updateMission(mission) }
@PostMapping("/delete")
fun deleteMission(
@RequestParam("missionCode") missionCode: String
- ) = missionService.deleteMission(missionCode)
+ ) = resPack { missionService.deleteMission(missionCode) }
+
+ @PostMapping("/delete/data/vehicle")
+ fun deleteMissionAndData(
+ @RequestParam("missionCode") missionCode: String
+ ) = resPack { missionService.deleteMissionAndData(missionCode) }
+
+ @GetMapping("/report")
+ fun getReport(
+ @RequestParam missionCode: String,
+ response: HttpServletResponse,
+ ) = missionService.getReport(missionCode, response)
}
\ No newline at end of file
--
Gitblit v1.9.3