Michael Yang
2025-04-17 ecf64a17b646270f29fbb9cb6b5f7210262df1f3
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
package tech.aiflowy.common.filestorage;
 
import tech.aiflowy.common.util.SpringContextUtil;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
 
@Configuration
@ConfigurationProperties(prefix = "aiflowy.storage")
public class StorageConfig {
 
    //支持 local、s3、xfile...
    private String type;
 
    public String getType() {
        return type;
    }
 
    public void setType(String type) {
        this.type = type;
    }
 
    public static StorageConfig getInstance() {
        return SpringContextUtil.getBean(StorageConfig.class);
    }
 
}