package com.hotwj.platform.config.dispatchTemplate.domain.vo;

import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
import cn.idev.excel.annotation.ExcelProperty;
import com.hotwj.platform.config.dispatchTemplate.domain.HotDispatchTemplate;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;

import java.io.Serial;
import java.io.Serializable;


/**
 * 下发模板视图对象 hot_dispatch_template
 *
 * @author shihongwei
 * @date 2026-02-15
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = HotDispatchTemplate.class)
public class HotDispatchTemplateVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

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

    /**
     * 公司ID（由应用层保证必填）
     */
    @ExcelProperty(value = "公司ID", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "由=应用层保证必填")
    private Long companyId;

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

    /**
     * 模板类型（字典）
     */
    @ExcelProperty(value = "模板类型", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "字=典")
    private String templateType;

    /**
     * 样式图OSS附件ID
     */
    @ExcelProperty(value = "样式图OSS附件ID")
    private String styleOssId;

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

    /**
     * 创建者姓名
     */
    @ExcelProperty(value = "创建者姓名")
    private String createByName;

    /**
     * 更新者姓名
     */
    @ExcelProperty(value = "更新者姓名")
    private String updateByName;

    /**
     * 0=正常, 1=已删除
     */
    @ExcelProperty(value = "0=正常, 1=已删除")
    private Long isDeleted;


}
