feiyu02
2025-09-01 29383149f7040d89ae00ad48dc48bbcf46587946
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package com.flightfeather.uav.lightshare.service
 
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?): Pair<DataHead, List<Mission>>
 
    fun createMission(mission: Mission): Boolean
 
    fun updateMission(mission: Mission): Boolean
 
    fun deleteMission(missionCode: String): Boolean
 
    fun deleteMissionAndData(missionCode: String): Boolean
 
    fun getReport(missionCode: String, response: HttpServletResponse)
 
    /**
     * 计算任务信息,包括总里程数、所属区域、当日的空气质量背景等
     */
    fun calMissionInfo(missionCode: String): Boolean
}