From 94a6e4e4bc39153e64f8599e626475c4ce5bdb88 Mon Sep 17 00:00:00 2001
From: rain <167982779@qq.com>
Date: Tue, 16 Jul 2024 13:49:01 +0800
Subject: [PATCH] 修改喊话功能的重新喊话和音频展示接口,新增缩略图展示接口

---
 src/main/java/com/dji/sample/media/service/IFileService.java |   58 ++++++++++++++++++++++++++++++++++++++++++++++++++++------
 1 files changed, 52 insertions(+), 6 deletions(-)

diff --git a/src/main/java/com/dji/sample/media/service/IFileService.java b/src/main/java/com/dji/sample/media/service/IFileService.java
index 05066d3..0226017 100644
--- a/src/main/java/com/dji/sample/media/service/IFileService.java
+++ b/src/main/java/com/dji/sample/media/service/IFileService.java
@@ -1,11 +1,13 @@
 package com.dji.sample.media.service;
 
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
 import com.dji.sample.common.model.PaginationData;
-import com.dji.sample.media.model.FileUploadDTO;
-import com.dji.sample.media.model.MediaFileDTO;
-import com.dji.sample.media.model.MediaFileEntity;
-import com.dji.sample.media.model.MediaFileQueryParam;
+import com.dji.sample.common.model.ResponseResult;
+import com.dji.sample.media.model.*;
+import com.drew.imaging.ImageProcessingException;
 
+import java.awt.*;
+import java.io.IOException;
 import java.net.URL;
 import java.util.List;
 
@@ -18,6 +20,7 @@
 
     /**
      * Query if the file already exists based on the workspace id and the fingerprint of the file.
+     *
      * @param workspaceId
      * @param fingerprint
      * @return
@@ -26,6 +29,7 @@
 
     /**
      * Save the basic information of the file to the database.
+     *
      * @param workspaceId
      * @param file
      * @return
@@ -33,23 +37,61 @@
     Integer saveFile(String workspaceId, FileUploadDTO file);
 
     /**
+     * 存储水印图片
+     * @param workspaceId
+     * @param file
+     * @throws IOException
+     * @throws FontFormatException
+     * @throws ImageProcessingException
+     */
+    void saveMarkFile(String workspaceId, FileUploadDTO file) throws IOException, FontFormatException, ImageProcessingException;
+    void updateMarkMediaFileNames(String jobId);
+    /**
+     * 获取媒体文件状态
+     * @param fileId
+     * @return
+     */
+    Object mediaInfo(String fileId);
+    /**
      * Query information about all files in this workspace based on the workspace id.
+     *
      * @param workspaceId
      * @return
      */
     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<MediaFileNailEntity> mediaNailQuery(Integer page, Integer pageSize, Long updateStart, Long updateEnd, Long photoStart, Long photoEnd, String jobName, String workspaceId, String type);
+    /**
+     * 获取图斑图片集合
+     * @param dkbh
+     * @param workspaceId
+     * @return
+     */
+    List<MediaFileEntity> listByIsadd(String dkbh,String workspaceId);
+    /**
+     * 图斑图片审核状态改变
+     * @param fileId
+     * @return
+     */
+    ResponseResult updateExamByFileId(String fileId);
+
+    List<MediaFileEntity> listMediaFileEntity(String workspaceId, String jobId);
+
     /**
      * Paginate through all media files in this workspace.
+     *
      * @param workspaceId
      * @param page
      * @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.
+     *
      * @param workspaceId
      * @param fileId
      * @return
@@ -58,6 +100,7 @@
 
     /**
      * Query all media files of a job.
+     *
      * @param workspaceId
      * @param jobId
      * @return
@@ -66,9 +109,12 @@
 
     /**
      * 更新文件
-     * @param workspaceId 项目id
+     *
+     * @param workspaceId     项目id
      * @param mediaFileEntity
      * @return
      */
     Boolean updateMediaFile(String workspaceId, MediaFileEntity mediaFileEntity);
+
+    int deleteMedia(String workspaceId, String fileId);
 }

--
Gitblit v1.9.3