From 3904fbdccb96a9b1b4f919d18505d5ebb8ef976a Mon Sep 17 00:00:00 2001
From: rain <167982779@qq.com>
Date: Thu, 20 Jun 2024 18:13:18 +0800
Subject: [PATCH] 定时九洲巡查

---
 src/main/java/com/dji/sample/media/service/IFileService.java |   45 ++++++++++++++++++++++++++++++++++++++++++---
 1 files changed, 42 insertions(+), 3 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 c315720..a4fc934 100644
--- a/src/main/java/com/dji/sample/media/service/IFileService.java
+++ b/src/main/java/com/dji/sample/media/service/IFileService.java
@@ -1,10 +1,12 @@
 package com.dji.sample.media.service;
 
 import com.dji.sample.common.model.PaginationData;
+import com.dji.sample.common.model.ResponseResult;
 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.drew.imaging.ImageProcessingException;
 
 import java.awt.*;
 import java.io.IOException;
@@ -20,6 +22,7 @@
 
     /**
      * Query if the file already exists based on the workspace id and the fingerprint of the file.
+     *
      * @param workspaceId
      * @param fingerprint
      * @return
@@ -28,23 +31,56 @@
 
     /**
      * Save the basic information of the file to the database.
+     *
      * @param workspaceId
      * @param file
      * @return
      */
     Integer saveFile(String workspaceId, FileUploadDTO file);
-    Integer saveMarkFile(String workspaceId, FileUploadDTO file) throws IOException, FontFormatException;
+
+    /**
+     * 存储水印图片
+     * @param workspaceId
+     * @param file
+     * @throws IOException
+     * @throws FontFormatException
+     * @throws ImageProcessingException
+     */
+    void saveMarkFile(String workspaceId, FileUploadDTO file) throws IOException, FontFormatException, ImageProcessingException;
+
+    /**
+     * 获取媒体文件状态
+     * @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);
 
+    /**
+     * 获取图斑图片集合
+     * @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
@@ -54,6 +90,7 @@
 
     /**
      * Get the download address of the file.
+     *
      * @param workspaceId
      * @param fileId
      * @return
@@ -62,6 +99,7 @@
 
     /**
      * Query all media files of a job.
+     *
      * @param workspaceId
      * @param jobId
      * @return
@@ -70,11 +108,12 @@
 
     /**
      * 更新文件
-     * @param workspaceId 项目id
+     *
+     * @param workspaceId     项目id
      * @param mediaFileEntity
      * @return
      */
     Boolean updateMediaFile(String workspaceId, MediaFileEntity mediaFileEntity);
 
-    int  deleteMedia(String workspaceId, String fileId);
+    int deleteMedia(String workspaceId, String fileId);
 }

--
Gitblit v1.9.3