| | |
| | | package com.dji.sample.media.service; |
| | | |
| | | import com.dji.sample.component.mqtt.model.CommonTopicReceiver; |
| | | import com.dji.sample.common.model.PaginationData; |
| | | import com.dji.sample.media.model.FileUploadDTO; |
| | | import com.dji.sample.media.model.MediaJobDTO; |
| | | import com.dji.sample.media.model.param.SearchMediaParam; |
| | | import com.dji.sample.wayline.model.dto.WaylineJobDTO; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | |
| | | import java.awt.*; |
| | | import java.io.IOException; |
| | | import java.util.List; |
| | | |
| | | /** |
| | |
| | | |
| | | /** |
| | | * Check if the file has been uploaded by the fingerprint. |
| | | * |
| | | * @param workspaceId |
| | | * @param fingerprint |
| | | * @return |
| | |
| | | |
| | | /** |
| | | * Save the basic information of the file to the database. |
| | | * |
| | | * @param workspaceId |
| | | * @param file |
| | | * @return |
| | | */ |
| | | Integer saveMediaFile(String workspaceId, FileUploadDTO file); |
| | | |
| | | |
| | | /** |
| | | * Query tiny fingerprints about all files in this workspace based on the workspace id. |
| | | * |
| | | * @param workspaceId |
| | | * @return |
| | | */ |
| | |
| | | |
| | | /** |
| | | * Query the fingerprints that already exist in it based on the incoming tiny fingerprints data. |
| | | * |
| | | * @param workspaceId |
| | | * @param tinyFingerprints |
| | | * @return |
| | | */ |
| | | List<String> getExistTinyFingerprints(String workspaceId, List<String> tinyFingerprints); |
| | | |
| | | /** |
| | | * Handle media files messages reported by dock. |
| | | * @param receiver |
| | | * @return |
| | | */ |
| | | void handleFileUploadCallBack(CommonTopicReceiver receiver); |
| | | PaginationData<MediaJobDTO> mediaPage(String workspaceId, SearchMediaParam param); |
| | | |
| | | PaginationData<MediaJobDTO> mediaDetail(String jobId, Long page, Long pageSize); |
| | | } |