| | |
| | | import com.dji.sample.common.model.ResponseResult; |
| | | import com.dji.sample.droneairport.model.Entity.DeviceExpanSionEntity; |
| | | import com.dji.sample.droneairport.model.param.ReturnTaskParam; |
| | | import org.bouncycastle.crypto.InvalidCipherTextException; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.io.IOException; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | public interface RegistService { |
| | | |
| | |
| | | * @return 返回一个包含无人机状态信息的ResponseResult对象 |
| | | * @throws Exception 如果在获取无人机状态过程中发生错误,将抛出异常 |
| | | */ |
| | | String getDroneState(String deviceId) throws Exception; |
| | | Map<String, String> getDroneState(String deviceId) throws Exception; |
| | | |
| | | /** |
| | | * 执行授权操作 |
| | |
| | | * @return 返回一个包含任务添加结果的ReturnParam对象,具体结果包括成功与否、错误信息等 |
| | | * @throws Exception 如果在任务添加过程中发生错误,将抛出异常 |
| | | */ |
| | | ReturnTaskParam AddTask(String base64, String Secret, String username) throws Exception; |
| | | Map<String, String> AddTask(String base64, String Secret, String username) throws Exception; |
| | | |
| | | /** |
| | | * 更新任务状态 |
| | |
| | | * @return 包含更新后任务状态信息的返回参数 |
| | | * @throws Exception 如果更新任务状态过程中发生错误,将抛出异常 |
| | | */ |
| | | ReturnTaskParam updateTask(String base64, String Secret, String username) throws Exception; |
| | | Map<String, String> updateTask(String base64, String Secret, String username) throws Exception; |
| | | |
| | | /** |
| | | * 取消指定任务 |
| | |
| | | * @param taskId 任务ID,用于标识待取消的任务 |
| | | * @return 返回任务取消操作的结果,包含是否成功及可能的错误信息 |
| | | */ |
| | | ResponseResult cancelTask(String taskId); |
| | | Map<String, String> cancelTask(String taskId) throws InvalidCipherTextException, IOException; |
| | | |
| | | /** |
| | | * 查询任务状态 |
| | |
| | | * @return 返回一个包含无人机状态信息的ResponseResult对象 |
| | | * @throws Exception 如果在获取无人机状态过程中发生错误,将抛出异常 |
| | | */ |
| | | String findDbFilesByTaskId(String taskId); |
| | | Map<String,String> findDbFilesByTaskId(String taskId) throws InvalidCipherTextException, IOException; |
| | | /** |
| | | * 获取指定工作空间中不同任务的总数 |
| | | * |