mirror of
https://github.com/dromara/RuoYi-Vue-Plus.git
synced 2025-09-24 07:19:46 +08:00
update 使用 策略+工厂 重写OSS模块
This commit is contained in:
@ -1,43 +1,16 @@
|
||||
package com.ruoyi.oss.constant;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
|
||||
|
||||
/**
|
||||
* 云存储常量
|
||||
*
|
||||
* @author Lion Li
|
||||
*/
|
||||
public class CloudConstant {
|
||||
|
||||
/**
|
||||
* 云存储配置KEY
|
||||
*/
|
||||
public final static String CLOUD_STORAGE_CONFIG_KEY = "sys.oss.cloud-storage";
|
||||
public final static String CLOUD_STORAGE_CONFIG_KEY = "sys.oss.cloudStorageService";
|
||||
|
||||
/**
|
||||
* 云服务商
|
||||
*/
|
||||
@Getter
|
||||
@AllArgsConstructor
|
||||
public enum CloudService {
|
||||
|
||||
/**
|
||||
* 七牛云
|
||||
*/
|
||||
QINIU(1),
|
||||
|
||||
/**
|
||||
* 阿里云
|
||||
*/
|
||||
ALIYUN(2),
|
||||
|
||||
/**
|
||||
* 腾讯云
|
||||
*/
|
||||
QCLOUD(3),
|
||||
|
||||
/**
|
||||
* minio
|
||||
*/
|
||||
MINIO(4);
|
||||
|
||||
private final int value;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user