feat: add screenshot archive and article sync services
This commit is contained in:
@@ -0,0 +1,57 @@
|
||||
package com.ruoyi.office.config;
|
||||
|
||||
import org.springframework.boot.context.properties.ConfigurationProperties;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
/**
|
||||
* 网站文章同步配置。
|
||||
*/
|
||||
@Component
|
||||
@ConfigurationProperties(prefix = "website-sync")
|
||||
public class WebsiteSyncProperties
|
||||
{
|
||||
private String baseUrl;
|
||||
private String apiKey;
|
||||
private int connectTimeout = 5000;
|
||||
private int readTimeout = 30000;
|
||||
|
||||
public String getBaseUrl()
|
||||
{
|
||||
return baseUrl;
|
||||
}
|
||||
|
||||
public void setBaseUrl(String baseUrl)
|
||||
{
|
||||
this.baseUrl = baseUrl;
|
||||
}
|
||||
|
||||
public String getApiKey()
|
||||
{
|
||||
return apiKey;
|
||||
}
|
||||
|
||||
public void setApiKey(String apiKey)
|
||||
{
|
||||
this.apiKey = apiKey;
|
||||
}
|
||||
|
||||
public int getConnectTimeout()
|
||||
{
|
||||
return connectTimeout;
|
||||
}
|
||||
|
||||
public void setConnectTimeout(int connectTimeout)
|
||||
{
|
||||
this.connectTimeout = connectTimeout;
|
||||
}
|
||||
|
||||
public int getReadTimeout()
|
||||
{
|
||||
return readTimeout;
|
||||
}
|
||||
|
||||
public void setReadTimeout(int readTimeout)
|
||||
{
|
||||
this.readTimeout = readTimeout;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user