init
This commit is contained in:
38
src/main/java/com/newyetai/sdk/xf/config/XfProperties.java
Normal file
38
src/main/java/com/newyetai/sdk/xf/config/XfProperties.java
Normal file
@@ -0,0 +1,38 @@
|
||||
package com.newyetai.sdk.xf.config;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
import org.springframework.boot.context.properties.ConfigurationProperties;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
@ConfigurationProperties(prefix = XfProperties.PREFIX)
|
||||
@Data
|
||||
@Component
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@Builder
|
||||
public class XfProperties implements Serializable{
|
||||
|
||||
/** **/
|
||||
private static final long serialVersionUID = 6362606996602121889L;
|
||||
|
||||
public static final String PREFIX = "xf";
|
||||
|
||||
/** 控制台获取http服务接口认证信息中的APIPassword **/
|
||||
private String httpAPIPassword;
|
||||
|
||||
/** 在控制台-我的应用获取 **/
|
||||
private String appId;
|
||||
private String apiSecret;
|
||||
private String apiKey;
|
||||
/** 语音听写地址 **/
|
||||
private String iatHostUrl;
|
||||
/** 语音合成地址 **/
|
||||
private String ttsHostUrl;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user