package com.ruoyi.system.utils.wx.model;
|
|
import lombok.ToString;
|
import org.springframework.boot.context.properties.ConfigurationProperties;
|
import org.springframework.stereotype.Component;
|
|
/**
|
* @author xiaochen
|
* @ClassName WeixinProperties
|
* @Description
|
* @date 2024-08-14 13:55
|
*/
|
@ToString
|
@Component
|
@ConfigurationProperties(prefix = "wx.conf")
|
public class WeixinProperties {
|
/**
|
* 默认开启
|
*/
|
private boolean enabled = true;
|
/**
|
* 获取 App ID
|
*
|
* @return App ID
|
*/
|
private String appId;
|
/**
|
* 获取 Mch ID
|
*
|
* @return Mch ID
|
*/
|
private String mchId;
|
|
/**
|
* 获取 secret ID
|
*
|
* @return secret ID
|
*/
|
private String secretId;
|
|
public String getSecretId() {
|
return secretId;
|
}
|
|
public void setSecretId(String secretId) {
|
this.secretId = secretId;
|
}
|
|
/**
|
* HTTP(S) 连接超时时间,单位毫秒
|
*
|
*/
|
public int getHttpConnectTimeoutMs() {
|
return 6 * 1000;
|
}
|
|
/**
|
* HTTP(S) 读数据超时时间,单位毫秒
|
*/
|
public int getHttpReadTimeoutMs() {
|
return 8 * 1000;
|
}
|
|
public String getAppId() {
|
return appId;
|
}
|
|
public void setAppId(String appId) {
|
this.appId = appId;
|
}
|
|
public String getMchId() {
|
return mchId;
|
}
|
|
public void setMchId(String mchId) {
|
this.mchId = mchId;
|
}
|
}
|