
package com.tmerclub.cloud.product.vo;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.tmerclub.cloud.common.product.vo.CategoryLangVO;
import lombok.Data;
import lombok.ToString;

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

/**
 * @Author TRACK
 */
@Data
@ToString
public class CategoryExcelVO implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;
    /**
     * excel 信息
     */
    public static final String EXCEL_NAME = "分类信息";
    /**
     * 哪一行开始导出
     */
    public static final int MERGE_ROW_INDEX = 2;

    /**
     * 需要合并的列数组
     */
    public static final int[] MERGE_COLUMN_INDEX = {};

    @ExcelProperty({"分类信息", "分类中文名称"})
    private String nameZh;

    @ExcelProperty({"分类信息", "分类层级"})
    private String grade;

    @ExcelProperty({"分类信息", "父级分类"})
    private String parentName;

    @ExcelProperty({"分类信息", "分类状态"})
    private String categoryStatus;

    @ExcelProperty({"分类信息", "排序"})
    private Integer seq;

    @ExcelIgnore
    private Long categoryId;

    @ExcelIgnore
    private Long parentId;

    @ExcelIgnore
    private List<CategoryLangVO> categoryLangList;

    @ExcelIgnore
    private Integer level;

    @ExcelIgnore
    private Integer status;

}
