| | |
| | | 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 |
| | |
| | | @RequestBody mission: Mission |
| | | ) = missionService.createMission(mission) |
| | | |
| | | @PostMapping("/update") |
| | | fun updateMission( |
| | | @RequestBody mission: Mission |
| | | ) = missionService.updateMission(mission) |
| | | |
| | | @PostMapping("/delete") |
| | | fun deleteMission( |
| | | @RequestParam("missionCode") missionCode: String |
| | |
| | | fun deleteMissionAndData( |
| | | @RequestParam("missionCode") missionCode: String |
| | | ) = resPack { missionService.deleteMissionAndData(missionCode) } |
| | | |
| | | @GetMapping("/report") |
| | | fun getReport( |
| | | @RequestParam missionCode: String, |
| | | response: HttpServletResponse, |
| | | ) = missionService.getReport(missionCode, response) |
| | | } |