shikeyin
2024-01-11 65da8373531677b1c37a98f53eaa30c892f35e5a
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
package com.iplatform.base.support;
 
import com.iplatform.base.FileOperateSpi;
import com.walker.file.FileInfo;
import com.walker.file.FileStoreType;
 
import java.io.InputStream;
import java.util.List;
 
/**
 * 基于微服务(负载集群)实现的文件操作提供者实现。<p></p>
 * 1.这只是一个测试,具体需求要根据情况实现。<br>
 * 2.当前系统提供默认实现支持: FTP 和 本地磁盘文件
 * @author 时克英
 * @date 2023-02-15
 */
public class LoadBalanceFileOperateSpi implements FileOperateSpi {
 
    @Override
    public String clearCdnPrefix(String path) {
        return null;
    }
 
    @Override
    public String getCdnUrl() {
        return null;
    }
 
    @Override
    public FileInfo uploadFileToLocal(InputStream inputStream, String fileName, String groupId, long fileSize, Integer businessType, String owner) throws Exception {
        return null;
    }
 
    @Override
    public FileInfo[] uploadFileToLocal(InputStream[] inputStream, String[] fileName, String groupId, long[] fileSize, Integer businessType, String owner) throws Exception {
        return new FileInfo[0];
    }
 
    @Override
    public FileInfo uploadFileToFtp(InputStream inputStream, String fileName, String groupId, long fileSize, Integer businessType, String owner) throws Exception {
        return null;
    }
 
    @Override
    public FileInfo[] uploadFileToFtp(InputStream[] inputStream, String[] fileName, String groupId, long[] fileSize, Integer businessType, String owner) throws Exception {
        return new FileInfo[0];
    }
 
    @Override
    public FileInfo uploadFileToOss(InputStream inputStream, String fileName, String groupId, long fileSize, Integer businessType, String owner, FileStoreType ossType) throws Exception {
        return null;
    }
 
    @Override
    public FileInfo[] uploadFileToOss(InputStream[] inputStream, String[] fileName, String groupId, long[] fileSize, Integer businessType, String owner, FileStoreType ossType) throws Exception {
        return new FileInfo[0];
    }
 
    @Override
    public FileInfo uploadFileToSystem(InputStream inputStream, String fileName, String groupId, long fileSize) throws Exception {
        return null;
    }
 
    @Override
    public FileInfo uploadFileToFtp(InputStream inputStream, String fileName, String groupId, long fileSize) throws Exception {
        return null;
    }
 
    @Override
    public FileInfo getFileInfo(long id) {
        return null;
    }
 
    @Override
    public List<FileInfo> getFileInfoList(List<String> ids) {
        return null;
    }
 
    @Override
    public String getFileRootConfig() {
        return null;
    }
 
    @Override
    public boolean isRemoteAsLocal() {
        return false;
    }
}