From 2db1aa88e8ab53096a936163d686b90d8e056a99 Mon Sep 17 00:00:00 2001
From: rain <167982779@qq.com>
Date: Wed, 21 Aug 2024 23:18:33 +0800
Subject: [PATCH] 国土对接返回信息加密

---
 src/main/java/com/dji/sample/component/oss/service/IOssService.java |   27 +++++++++++++++++++++++++++
 1 files changed, 27 insertions(+), 0 deletions(-)

diff --git a/src/main/java/com/dji/sample/component/oss/service/IOssService.java b/src/main/java/com/dji/sample/component/oss/service/IOssService.java
index beb9db6..9dfe2ba 100644
--- a/src/main/java/com/dji/sample/component/oss/service/IOssService.java
+++ b/src/main/java/com/dji/sample/component/oss/service/IOssService.java
@@ -2,6 +2,7 @@
 
 import com.dji.sample.media.model.CredentialsDTO;
 
+import java.io.InputStream;
 import java.net.URL;
 
 /**
@@ -11,17 +12,43 @@
  */
 public interface IOssService {
 
+    String getOssType();
+
     /**
      * Get temporary credentials.
+     *
      * @return
      */
     CredentialsDTO getCredentials();
 
     /**
      * Get the address of the object based on the bucket name and the object name.
+     *
      * @param bucket    bucket name
      * @param objectKey object name
      * @return download link
      */
     URL getObjectUrl(String bucket, String objectKey);
+
+    /**
+     * Deletes the object in the storage bucket.
+     *
+     * @param bucket
+     * @param objectKey
+     * @return
+     */
+    Boolean deleteObject(String bucket, String objectKey);
+
+    /**
+     * Get the contents of an object.
+     *
+     * @param bucket
+     * @param objectKey
+     * @return
+     */
+    InputStream getObject(String bucket, String objectKey);
+
+    String putObject(String bucket, String objectKey, InputStream input);
+
+    void createClient();
 }

--
Gitblit v1.9.3