调用dify,解决时间问题,源语料为空的问题
This commit is contained in:
60
src/main/java/com/rj/config/AliyunConfig.java
Normal file
60
src/main/java/com/rj/config/AliyunConfig.java
Normal file
@@ -0,0 +1,60 @@
|
||||
package com.rj.config;
|
||||
|
||||
import org.springframework.boot.context.properties.ConfigurationProperties;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
|
||||
/**
|
||||
* 阿里云配置类
|
||||
*
|
||||
* @author Li Zhonghua
|
||||
* @since 2025-08-22
|
||||
*/
|
||||
@Configuration
|
||||
@ConfigurationProperties(prefix = "aliyun")
|
||||
public class AliyunConfig {
|
||||
|
||||
/**
|
||||
* 阿里云API Key
|
||||
*/
|
||||
private String apiKey;
|
||||
|
||||
/**
|
||||
* 阿里云区域
|
||||
*/
|
||||
private String region = "cn-beijing";
|
||||
|
||||
/**
|
||||
* 是否启用阿里云服务
|
||||
*/
|
||||
private boolean enabled = true;
|
||||
|
||||
public String getApiKey() {
|
||||
return apiKey;
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user