package org.xyzh.message.config;

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;
    }
}
