feiyu02
2024-05-31 da431c25dfe5122e4ed70372da36ede3e4eaec4a
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
@@ -31,4 +32,10 @@
    fun deleteMissionAndData(
        @RequestParam("missionCode") missionCode: String
    ) = resPack { missionService.deleteMissionAndData(missionCode) }
    @GetMapping("/report")
    fun getReport(
        @RequestParam missionCode: String,
        response: HttpServletResponse,
    ) = missionService.getReport(missionCode, response)
}