| | |
| | | import com.dji.sample.media.model.MediaFileEntity; |
| | | import com.dji.sample.media.model.MediaFileQueryParam; |
| | | |
| | | import java.awt.*; |
| | | import java.io.IOException; |
| | | import java.net.URL; |
| | | import java.util.List; |
| | | |
| | |
| | | * @return |
| | | */ |
| | | Integer saveFile(String workspaceId, FileUploadDTO file); |
| | | |
| | | Integer saveMarkFile(String workspaceId, FileUploadDTO file) throws IOException, FontFormatException; |
| | | /** |
| | | * Query information about all files in this workspace based on the workspace id. |
| | | * @param workspaceId |
| | | * @return |
| | | */ |
| | | List<MediaFileDTO> getAllFilesByWorkspaceId(String workspaceId); |
| | | |
| | | List<MediaFileEntity> listMediaFileEntity(String workspaceId, String jobId); |
| | | |
| | | /** |
| | | * Paginate through all media files in this workspace. |
| | |
| | | * @param pageSize |
| | | * @return |
| | | */ |
| | | PaginationData<MediaFileDTO> getMediaFilesPaginationByWorkspaceId(String workspaceId, long page, long pageSize, MediaFileQueryParam mediaFileQueryParam); |
| | | PaginationData<MediaFileEntity> getMediaFilesPaginationByWorkspaceId(String workspaceId, long page, long pageSize, MediaFileQueryParam mediaFileQueryParam); |
| | | |
| | | /** |
| | | * Get the download address of the file. |
| | |
| | | * @return |
| | | */ |
| | | Boolean updateMediaFile(String workspaceId, MediaFileEntity mediaFileEntity); |
| | | |
| | | int deleteMedia(String workspaceId, String fileId); |
| | | } |