| | |
| | | import com.dji.sample.common.model.ResponseResult; |
| | | import com.dji.sample.media.model.*; |
| | | import com.drew.imaging.ImageProcessingException; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.awt.*; |
| | | import java.io.IOException; |
| | | import java.net.URL; |
| | |
| | | */ |
| | | Integer saveFile(String workspaceId, FileUploadDTO file) throws IOException, ImageProcessingException; |
| | | |
| | | /** |
| | | * 存储水印图片 |
| | | * @param workspaceId |
| | | * @param file |
| | | * @throws IOException |
| | | * @throws FontFormatException |
| | | * @throws ImageProcessingException |
| | | */ |
| | | void saveMarkFile(String workspaceId, FileUploadDTO file) throws IOException, FontFormatException, ImageProcessingException; |
| | | void updateMarkMediaFileNames(String jobId); |
| | | void saveFiles(String workspaceId, FileUploadDTO file) throws IOException, ImageProcessingException; |
| | | // void saveNailFile(String workspaceId, FileUploadDTO file) throws IOException, ImageProcessingException; |
| | | |
| | | // void saveZipFile(String workspaceId, FileUploadDTO file) throws IOException, ImageProcessingException; |
| | | void updateNailMediaFileNames(String jobId); |
| | | PaginationData<MediaFileEntity> getJobId( int pageNum, int pageSize,String workspaceId); |
| | | PaginationData<MediaFileEntity> getPhotoByJobId(int page,int pageSize ,String workspaceId,String jobId); |
| | | PaginationData<MediaFileEntity> mediaQuerys(Integer page, Integer pageSize, String workspaceId ); |
| | | /** |
| | | * 获取媒体文件状态 |
| | | * @param fileId |
| | | * @return |
| | | */ |
| | | Object mediaInfo(String fileId); |
| | | List<MediaFileEntity> getMedia(String jobId); |
| | | /** |
| | | * Query information about all files in this workspace based on the workspace id. |
| | | * |
| | |
| | | */ |
| | | List<MediaFileDTO> getAllFilesByWorkspaceId(String workspaceId); |
| | | |
| | | PaginationData<MediaFileEntity> mediaQuery(Integer page, Integer pageSize, Long updateStart, Long updateEnd, Long photoStart, Long photoEnd, String jobName,String worksapceId,String isVedio); |
| | | PaginationData<MediaFileEntity> mediaQuery(Integer page, Integer pageSize, Long updateStart, Long updateEnd, Long photoStart, Long photoEnd, String jobName,String worksapceId,String isVedio,String jobId); |
| | | |
| | | PaginationData<MediaFileNailEntity> mediaNailQuery(Integer page, Integer pageSize, Long updateStart, Long updateEnd, Long photoStart, Long photoEnd, String jobName, String workspaceId, String type); |
| | | /** |
| | |
| | | */ |
| | | URL getObjectUrl(String workspaceId, String fileId); |
| | | |
| | | ResponseResult downloadImages( List<String> jobIds); |
| | | |
| | | /** |
| | | * Query all media files of a job. |
| | | * |
| | |
| | | */ |
| | | List<MediaFileDTO> getFilesByWorkspaceAndJobId(String workspaceId, String jobId); |
| | | |
| | | List<String> getUniqueFilePaths(List<String> jobIds); |
| | | /** |
| | | * 更新文件 |
| | | * |
| | |
| | | Boolean updateMediaFile(String workspaceId, MediaFileEntity mediaFileEntity); |
| | | |
| | | int deleteMedia(String workspaceId, String fileId); |
| | | |
| | | void getNoaddFile(); |
| | | } |