liusuyi
2025-10-30 27b3ffa1dcf89f4dc5fdd13a96f7c985d0eba68d
ard-oss/src/main/java/com/ard/oss/service/IOssService.java
@@ -1,6 +1,7 @@
package com.ard.oss.service;
import com.ard.oss.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,6 +41,7 @@
    /**
     * Get the contents of an object.
     *
     * @param bucket
     * @param objectKey
     * @return
@@ -45,6 +50,8 @@
    void putObject(String bucket, String objectKey, InputStream input);
    void putObject(String bucket, String objectKey, InputStream input, String contentType);
    void createClient();
}