package tech.easyflow.common.filestorage.xFileStorage;

import tech.easyflow.common.util.SpringContextUtil;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

@Configuration
@ConfigurationProperties(prefix = "easyflow.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);
    }

}
