派生自 projectDept/qhighschool

dengqingliu
2022-12-02 e61a65c45a2a6a943be7ec56413162deefdda165
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
package com.qxueyou.scc.teach.res.service;
 
import org.springframework.web.multipart.MultipartFile;
 
import java.io.InputStream;
import java.util.List;
 
/**
 * @Description 华为云OBS服务接口
 * @author wuhuiju
 * @date 2022/12/2 17:01
 */
public interface HweiYunOBSService {
 
    /**
     * @Description 删除文件
     * @author wuhuiju
     * @date 2022/12/2 17:02
     * @param: objectKey 文件名
     * @return: boolean 执行结果
     */
    boolean delete(String objectKey);
 
    /**
     * @Description 批量删除文件
     * @author wuhuiju
     * @date 2022/12/2 17:02
     * @param: objectKeys 文件名集合
     * @return: boolean 执行结果
     */
    boolean delete(List<String> objectKeys);
 
    /**
     * @Description 上传文件
     * @author wuhuiju
     * @date 2022/12/2 17:03
     * @param: uploadFile 上传文件
     * @param: objectKey 文件名称
     * @return: java.lang.String url访问路径
     */
    String fileUpload(MultipartFile uploadFile, String objectKey);
 
    /**
     * @Description 文件下载
     * @author wuhuiju
     * @date 2022/12/2 17:04
     * @param: objectKey
     * @return: java.io.InputStream
     */
    InputStream fileDownload(String objectKey);
}