sms、邮件数据库配置
This commit is contained in:
@@ -0,0 +1,91 @@
|
||||
package org.xyzh.common.config.properties;
|
||||
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
/**
|
||||
* @description 邮件配置属性
|
||||
* @filename EmailConfigProperties.java
|
||||
* @author yslg
|
||||
* @copyright xyzh
|
||||
* @since 2025-11-26
|
||||
*/
|
||||
@Component
|
||||
public class EmailConfigProperties {
|
||||
|
||||
/** SMTP服务器地址 */
|
||||
private String host;
|
||||
|
||||
/** SMTP端口 */
|
||||
private Integer port;
|
||||
|
||||
/** 发件人邮箱 */
|
||||
private String username;
|
||||
|
||||
/** 邮箱授权码 */
|
||||
private String password;
|
||||
|
||||
/** 发件人名称 */
|
||||
private String fromName;
|
||||
|
||||
/** 是否启用SSL */
|
||||
private Boolean sslEnable;
|
||||
|
||||
/** 连接超时时间(毫秒) */
|
||||
private Integer timeout;
|
||||
|
||||
public String getHost() {
|
||||
return host;
|
||||
}
|
||||
|
||||
public void setHost(String host) {
|
||||
this.host = host;
|
||||
}
|
||||
|
||||
public Integer getPort() {
|
||||
return port;
|
||||
}
|
||||
|
||||
public void setPort(Integer port) {
|
||||
this.port = port;
|
||||
}
|
||||
|
||||
public String getUsername() {
|
||||
return username;
|
||||
}
|
||||
|
||||
public void setUsername(String username) {
|
||||
this.username = username;
|
||||
}
|
||||
|
||||
public String getPassword() {
|
||||
return password;
|
||||
}
|
||||
|
||||
public void setPassword(String password) {
|
||||
this.password = password;
|
||||
}
|
||||
|
||||
public String getFromName() {
|
||||
return fromName;
|
||||
}
|
||||
|
||||
public void setFromName(String fromName) {
|
||||
this.fromName = fromName;
|
||||
}
|
||||
|
||||
public Boolean getSslEnable() {
|
||||
return sslEnable;
|
||||
}
|
||||
|
||||
public void setSslEnable(Boolean sslEnable) {
|
||||
this.sslEnable = sslEnable;
|
||||
}
|
||||
|
||||
public Integer getTimeout() {
|
||||
return timeout;
|
||||
}
|
||||
|
||||
public void setTimeout(Integer timeout) {
|
||||
this.timeout = timeout;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,91 @@
|
||||
package org.xyzh.common.config.properties;
|
||||
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
/**
|
||||
* @description 短信配置属性
|
||||
* @filename SmsConfigProperties.java
|
||||
* @author yslg
|
||||
* @copyright xyzh
|
||||
* @since 2025-11-26
|
||||
*/
|
||||
@Component
|
||||
public class SmsConfigProperties {
|
||||
|
||||
/** 短信服务商 */
|
||||
private String provider;
|
||||
|
||||
/** AccessKey ID */
|
||||
private String accessKeyId;
|
||||
|
||||
/** AccessKey Secret */
|
||||
private String accessKeySecret;
|
||||
|
||||
/** 短信签名 */
|
||||
private String signName;
|
||||
|
||||
/** 登录验证码模板 */
|
||||
private String templateCodeLogin;
|
||||
|
||||
/** 注册验证码模板 */
|
||||
private String templateCodeRegister;
|
||||
|
||||
/** 请求超时时间(毫秒) */
|
||||
private Integer timeout;
|
||||
|
||||
public String getProvider() {
|
||||
return provider;
|
||||
}
|
||||
|
||||
public void setProvider(String provider) {
|
||||
this.provider = provider;
|
||||
}
|
||||
|
||||
public String getAccessKeyId() {
|
||||
return accessKeyId;
|
||||
}
|
||||
|
||||
public void setAccessKeyId(String accessKeyId) {
|
||||
this.accessKeyId = accessKeyId;
|
||||
}
|
||||
|
||||
public String getAccessKeySecret() {
|
||||
return accessKeySecret;
|
||||
}
|
||||
|
||||
public void setAccessKeySecret(String accessKeySecret) {
|
||||
this.accessKeySecret = accessKeySecret;
|
||||
}
|
||||
|
||||
public String getSignName() {
|
||||
return signName;
|
||||
}
|
||||
|
||||
public void setSignName(String signName) {
|
||||
this.signName = signName;
|
||||
}
|
||||
|
||||
public String getTemplateCodeLogin() {
|
||||
return templateCodeLogin;
|
||||
}
|
||||
|
||||
public void setTemplateCodeLogin(String templateCodeLogin) {
|
||||
this.templateCodeLogin = templateCodeLogin;
|
||||
}
|
||||
|
||||
public String getTemplateCodeRegister() {
|
||||
return templateCodeRegister;
|
||||
}
|
||||
|
||||
public void setTemplateCodeRegister(String templateCodeRegister) {
|
||||
this.templateCodeRegister = templateCodeRegister;
|
||||
}
|
||||
|
||||
public Integer getTimeout() {
|
||||
return timeout;
|
||||
}
|
||||
|
||||
public void setTimeout(Integer timeout) {
|
||||
this.timeout = timeout;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user