1697371125@qq.com
2020-12-25 c085e6fa1cb24f0173b500488ecd192dd2ae624f
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
package cn.cetc54.platform.base.manager;
 
import org.springframework.web.multipart.MultipartFile;
 
import java.io.InputStream;
 
/**
 * @author x
 */
public interface FileManage {
 
 
    /**
     * 文件路径上传
     * @param filePath
     * @param key
     * @return
     */
    String pathUpload(String filePath, String key);
 
    /**
     * 文件流上传
     * @param inputStream
     * @param key
     * @param file
     * @return
     */
    String inputStreamUpload(InputStream inputStream, String key, MultipartFile file);
 
    /**
     * 重命名文件
     * @param fromKey
     * @param toKey
     * @return
     */
    String renameFile(String fromKey, String toKey);
 
    /**
     * 拷贝文件
     * @param fromKey
     * @param toKey
     * @return
     */
    String copyFile(String fromKey, String toKey);
 
    /**
     * 删除文件
     * @param key
     */
    void deleteFile(String key);
}