feat(server): 短篇小说外部服务配置类和请求 DTO
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
package com.emotion.config;
|
||||
|
||||
import lombok.Data;
|
||||
import org.springframework.boot.context.properties.ConfigurationProperties;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
|
||||
/**
|
||||
* 短篇小说外部服务配置
|
||||
*
|
||||
* @author huazhongmin
|
||||
* @date 2026-07-19
|
||||
*/
|
||||
@Data
|
||||
@Configuration
|
||||
@ConfigurationProperties(prefix = "short-novel")
|
||||
public class ShortNovelConfig {
|
||||
|
||||
/** 外部服务基础 URL */
|
||||
private String apiBaseUrl;
|
||||
|
||||
/** 外部服务 API Token */
|
||||
private String apiToken;
|
||||
|
||||
/** 连接超时(毫秒) */
|
||||
private Integer connectTimeout = 10000;
|
||||
|
||||
/** 读取超时(毫秒) */
|
||||
private Integer readTimeout = 300000;
|
||||
}
|
||||
Reference in New Issue
Block a user