From 2de612e9b260df2e76d4dd620ca739aa3b6e8c57 Mon Sep 17 00:00:00 2001 From: riku <risaku@163.com> Date: 星期一, 25 八月 2025 16:07:16 +0800 Subject: [PATCH] 2025.8.25 1. 添加走航季度报告相关统计功能(待完成) --- src/main/kotlin/com/flightfeather/uav/lightshare/web/MissionController.kt | 8 ++++---- 1 files changed, 4 insertions(+), 4 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 d220000..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,22 +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 - ) = missionService.updateMission(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