28 lines
1.0 KiB
Java
28 lines
1.0 KiB
Java
package com.nanri.aiimage.config;
|
|
|
|
import lombok.Data;
|
|
import org.springframework.boot.context.properties.ConfigurationProperties;
|
|
|
|
@Data
|
|
@ConfigurationProperties(prefix = "aiimage.oss")
|
|
public class OssProperties {
|
|
private String region;
|
|
private String endpoint;
|
|
private String publicEndpoint;
|
|
private String downloadEndpoint;
|
|
private String bucket;
|
|
private String imageVideoBucket;
|
|
private String digitalHumanBucket;
|
|
private String templateBucket;
|
|
/** 桌面客户端软件安装包桶(历史存公开 client 桶,勿用默认私桶)。 */
|
|
private String softwareVersionBucket;
|
|
/**
|
|
* 店铺数据采集累计档结果桶。独立成桶是为了脱离默认桶 nanri-ai-images 的
|
|
* 30 天全桶过期规则 —— 店铺数据记录约定「无更新则一直保留、只准人工删」,
|
|
* 落在默认桶会被存储层按 30 天自动清理。
|
|
*/
|
|
private String shopDataBucket;
|
|
private String accessKeyId;
|
|
private String accessKeySecret;
|
|
}
|