sean.zhou
2022-03-21 17835b967b48f2676cce3bbed081c6580602ee1c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
package com.dji.sample.component.oss.service;
 
import com.dji.sample.media.model.CredentialsDTO;
 
import java.net.URL;
 
/**
 * @author sean
 * @version 0.3
 * @date 2021/12/23
 */
public interface IOssService {
 
    /**
     * 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);
}