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

import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
import cn.idev.excel.annotation.ExcelProperty;
import com.hotwj.platform.config.systemTemplate.domain.HotSystemTemplate;
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_system_template
 *
 * @author shihongwei
 * @date 2026-02-14
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = HotSystemTemplate.class)
public class HotSystemTemplateVo 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;

    /**
     * 上级ID
     */
    @ExcelProperty(value = "上级ID")
    private Long parentId;

    /**
     * 名称（应用层校验必填）
     */
    @ExcelProperty(value = "名称", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "应=用层校验必填")
    private String name;

    /**
     * 体系类型（应用层枚举校验）
     */
    @ExcelProperty(value = "体系类型", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "应=用层枚举校验")
    private Long type;

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

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

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


}
