rain
2024-07-15 e567c76939c6516b4146aa6a554d95c0bcb4f078
src/main/java/com/dji/sample/component/oss/service/IOssService.java
@@ -16,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
@@ -30,6 +32,7 @@
    /**
     * Deletes the object in the storage bucket.
     *
     * @param bucket
     * @param objectKey
     * @return
@@ -38,13 +41,14 @@
    /**
     * Get the contents of an object.
     *
     * @param bucket
     * @param objectKey
     * @return
     */
    InputStream getObject(String bucket, String objectKey);
    void putObject(String bucket, String objectKey, InputStream input);
    String putObject(String bucket, String objectKey, InputStream input);
    void createClient();
}