package com.ruoyi.oa.domain.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.ruoyi.common.annotation.ExcelDictFormat;
import com.ruoyi.common.convert.ExcelDictConvert;
import lombok.Data;
import java.util.Date;



/**
 * 发件人邮箱账号管理视图对象 oa_email_account
 *
 * @author Joshi
 * @date 2025-07-10
 */
@Data
@ExcelIgnoreUnannotated
public class OaEmailAccountVo {

    private static final long serialVersionUID = 1L;

    /**
     * 
     */
    @ExcelProperty(value = "")
    private Long emailId;

    /**
     * 邮箱账号
     */
    @ExcelProperty(value = "邮箱账号")
    private String email;

    /**
     * 邮箱授权码/密码（SMTP方式用）
     */
    @ExcelProperty(value = "邮箱授权码/密码", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "S=MTP方式用")
    private String password;

    /**
     * SMTP服务器地址（SMTP方式用）
     */
    @ExcelProperty(value = "SMTP服务器地址", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "S=MTP方式用")
    private String smtpHost;

    /**
     * SMTP端口（SMTP方式用）
     */
    @ExcelProperty(value = "SMTP端口", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "S=MTP方式用")
    private Long smtpPort;

    /**
     * API方式用accessKey
     */
    @ExcelProperty(value = "API方式用accessKey")
    private String accessKey;

    /**
     * API方式用secretKey
     */
    @ExcelProperty(value = "API方式用secretKey")
    private String secretKey;

    /**
     * 邮箱类型（0网易 1QQ 2阿里云API 3SendGridAPI等）
     */
    @ExcelProperty(value = "邮箱类型", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "0=网易,1=QQ,2=阿里云API,3=SendGridAPI等")
    private Long type;

    /**
     * 备注
     */
    @ExcelProperty(value = "备注")
    private String remark;


}
