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_template
 *
 * @author ruoyi
 * @date 2025-07-16
 */
@Data
@ExcelIgnoreUnannotated
public class OaEmailTemplateVo {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @ExcelProperty(value = "主键")
    private Long id;

    /**
     * 模板名称
     */
    @ExcelProperty(value = "模板名称")
    private String templateName;

    /**
     * 模板分类
     */
    @ExcelProperty(value = "模板分类")
    private String category;

    /**
     * 模板内容（富文本HTML）
     */
    @ExcelProperty(value = "模板内容", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "富=文本HTML")
    private String content;

    /**
     * 附件信息（逗号分隔或JSON）
     */
    @ExcelProperty(value = "附件信息", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "逗=号分隔或JSON")
    private String attachments;

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


}
