rain
2024-07-31 587e31924f7bae43f8f31cb4fc9bf5f33593b50f
src/main/java/com/dji/sample/media/service/IFileService.java
@@ -5,7 +5,9 @@
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;
@@ -34,24 +36,21 @@
     * @param file
     * @return
     */
    Integer saveFile(String workspaceId, FileUploadDTO file);
    Integer saveFile(String workspaceId, FileUploadDTO file) throws IOException, ImageProcessingException;
    void saveNailFile(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 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.
     *
@@ -60,7 +59,7 @@
     */
    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);
    /**
@@ -98,6 +97,8 @@
     */
    URL getObjectUrl(String workspaceId, String fileId);
    ResponseResult downloadImages( List<String> jobIds);
    /**
     * Query all media files of a job.
     *
@@ -107,6 +108,7 @@
     */
    List<MediaFileDTO> getFilesByWorkspaceAndJobId(String workspaceId, String jobId);
    List<String> getUniqueFilePaths(List<String> jobIds);
    /**
     * 更新文件
     *