package com.njcn.gather.system.dictionary.pojo.vo;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelCollection;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * @author caozehui
 * @date 2024/11/5
 */
@Data
public class DictTypeExcel implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 名称
     */
    @Excel(name = "名称", width = 20, needMerge = true)
    private String name;

    /**
     * 编码
     */
    @Excel(name = "编码", width = 20, needMerge = true)
    private String code;

    /**
     * 排序
     */
    @Excel(name = "排序", width = 15, needMerge = true)
    private Integer sort;

    /**
     * 开启等级：0-不开启；1-开启，默认不开启
     */
    @Excel(name = "开启等级", width = 15, replace = {"开启_1", "不开启_0"}, needMerge = true)
    private Integer openLevel;

    /**
     * 开启描述：0-不开启；1-开启，默认不开启
     */
    @Excel(name = "开启描述", width = 15, replace = {"开启_1", "不开启_0"}, needMerge = true)
    private Integer openDescribe;

    /**
     * 描述
     */
    @Excel(name = "描述", width = 50, needMerge = true)
    private String remark;

    @ExcelCollection(name = "字典内容")
    private List<DictDataExcel> dictDataExcels;
}
