From 39ffdf5754b4ebca682bd3c925f7a500e8a1bbda Mon Sep 17 00:00:00 2001
From: aix <vip_xiaobin810@163.com>
Date: Thu, 08 Aug 2024 16:56:36 +0800
Subject: [PATCH] 国土调查云身份凭证token
---
src/main/java/com/dji/sample/component/oss/service/IOssService.java | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 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 53746ef..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;
/**
@@ -15,12 +16,14 @@
/**
* 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
@@ -29,6 +32,7 @@
/**
* Deletes the object in the storage bucket.
+ *
* @param bucket
* @param objectKey
* @return
@@ -37,9 +41,14 @@
/**
* Get the contents of an object.
+ *
* @param bucket
* @param objectKey
* @return
*/
- byte[] getObject(String bucket, String objectKey);
+ InputStream getObject(String bucket, String objectKey);
+
+ String putObject(String bucket, String objectKey, InputStream input);
+
+ void createClient();
}
--
Gitblit v1.9.3