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
| package com.ard.file.service;
|
| import org.springframework.web.multipart.MultipartFile;
|
| /**
| * 文件上传接口
| *
| * @author ard
| */
| public interface ISysFileService
| {
| /**
| * 文件上传接口
| *
| * @param file 上传的文件
| * @return 访问地址
| * @throws Exception
| */
| public String uploadFile(MultipartFile file) throws Exception;
| public String uploadFile(MultipartFile file, String bucketName)throws Exception;
| public String uploadFile(MultipartFile file, String bucketName, String path)throws Exception;
| /**
| * 文件删除接口
| *
| * @param fileUrl 文件访问URL
| * @throws Exception
| */
| public void deleteFile(String fileUrl) throws Exception;
| }
|
|