| | |
| | | |
| | | import com.flightfeather.uav.domain.entity.Mission |
| | | import com.flightfeather.uav.lightshare.bean.BaseResponse |
| | | import com.flightfeather.uav.lightshare.bean.DataHead |
| | | import javax.servlet.http.HttpServletResponse |
| | | |
| | | interface MissionService { |
| | | |
| | | fun getMission(type: String?, page: Int?, perPage: Int?): BaseResponse<List<Mission>> |
| | | fun getMission(type: String?, page: Int?, perPage: Int?): Pair<DataHead, List<Mission>> |
| | | |
| | | fun createMission(mission: Mission): BaseResponse<Boolean> |
| | | fun createMission(mission: Mission): Boolean |
| | | |
| | | fun updateMission(mission: Mission): BaseResponse<Boolean> |
| | | fun updateMission(mission: Mission): Boolean |
| | | |
| | | fun deleteMission(missionCode: String): BaseResponse<Boolean> |
| | | fun deleteMission(missionCode: String): Boolean |
| | | |
| | | fun deleteMissionAndData(missionCode: String): Boolean |
| | | |
| | | fun getReport(missionCode: String, response: HttpServletResponse) |
| | | |
| | | /** |
| | | * 计算任务信息,包括总里程数、所属区域、当日的空气质量背景等 |
| | | */ |
| | | fun calMissionInfo(missionCode: String): Boolean |
| | | } |