From e923f06d572c9a0e3b1eb2c54471af02c9d95bcf Mon Sep 17 00:00:00 2001
From: feiyu02 <risaku@163.com>
Date: 星期四, 18 十二月 2025 10:05:05 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'
---
src/main/kotlin/com/flightfeather/uav/lightshare/web/MissionController.kt | 11 ++++++++---
1 files changed, 8 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 4af2908..eeb0fc7 100644
--- a/src/main/kotlin/com/flightfeather/uav/lightshare/web/MissionController.kt
+++ b/src/main/kotlin/com/flightfeather/uav/lightshare/web/MissionController.kt
@@ -16,17 +16,22 @@
@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(
--
Gitblit v1.9.3