zhaowenyu
2026-04-01 b8b5a3895e741d5348ecdd39ad2e5cbd443f8e89
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
53
package com.ard.work.service;
 
import org.springframework.web.multipart.MultipartFile;
 
import javax.servlet.http.HttpServletResponse;
 
/**
 * 文件上传接口
 *
 * @author ard
 */
public interface IMinioFileService {
 
    /**
     * 文件上传接口
     *
     * @param file 上传的文件
     * @return 访问地址
     * @throws Exception
     */
    public String uploadFile(MultipartFile file) throws Exception;
 
    /**
     * 文件上传-指定桶名称
     *
     * @param file 上传的文件
     * @param bucketName 桶名称
     * @return 访问地址
     * @throws Exception
     */
    public String uploadFile(MultipartFile file, String bucketName) throws Exception;
 
    /**
     * 文件下载接口
     */
    public void downloadFile(String fileName, HttpServletResponse response) throws Exception;
 
    /**
     * 文件下载接口-指定桶名称
     */
    public void downloadFile(String fileName, String bucketName, HttpServletResponse response) throws Exception;
 
    /**
     * 文件删除接口
     */
    public void deleteFile(String fileName) throws Exception;
 
    /**
     * 文件删除接口-指定桶名称
     */
    public void deleteFile(String fileName, String bucketName) throws Exception;
 
}