客户管理功能联调

This commit is contained in:
spllzh
2025-10-24 10:41:48 +08:00
parent 2b9d14cc2e
commit 6801f06db5
27 changed files with 411 additions and 145 deletions

View File

@@ -1,14 +1,16 @@
package com.rj.config;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
/**
* 阿里云配置类
*
* @author Li Zhonghua
* @since 2025-08-22
* @author rj
* @date 2025-01-22
*/
@Data
@Configuration
@ConfigurationProperties(prefix = "aliyun")
public class AliyunConfig {
@@ -27,123 +29,37 @@ public class AliyunConfig {
* 是否启用阿里云服务
*/
private boolean enabled = true;
public String getApiKey() {
return apiKey;
/**
* API配置
*/
private ApiConfig api = new ApiConfig();
@Data
public static class ApiConfig {
/**
* 连接超时时间(毫秒)
*/
private int connectTimeout = 60000;
/**
* 读取超时时间(毫秒)
*/
private int readTimeout = 300000;
/**
* 最大重试次数
*/
private int maxRetries = 5;
/**
* 重试延迟时间(毫秒)
*/
private int retryDelay = 3000;
/**
* URL访问测试超时毫秒
*/
private int urlTestTimeout = 10000;
}
public void setApiKey(String apiKey) {
this.apiKey = apiKey;
}
public String getRegion() {
return region;
}
public void setRegion(String region) {
this.region = region;
}
public boolean isEnabled() {
return enabled;
}
public void setEnabled(boolean enabled) {
this.enabled = enabled;
}
}
}