package com.ruoyi.hezhi.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.TreeEntity;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.util.Date;
import java.util.List;

/**
 * 专业分类对象 tb_major_class
 *
 * @author ruoyi
 * @date 2024-10-16
 */
@Getter
@Setter
@ToString
public class TbMajorClass extends TreeEntity
{
    private static final long serialVersionUID = 1L;

    /** 专业分类主键ID */
    private Long majorId;

    /** 父级ID */
    private Long pid;

    /** 层级 0 1 2  */
    private Integer level;

    /** 类型（0-全部） */
    private Integer type;

    /** 专业名称 */
    @Excel(name = "专业名称")
    private String majorName;

    /** logo1 */
    @Excel(name = "logo1", cellType = Excel.ColumnType.IMAGE, width = 10, height = 30)
    private String majorLogoOne;

    /** logo2 */
    @Excel(name = "logo2", cellType = Excel.ColumnType.IMAGE, width = 10, height = 30)
    private String majorLogoTwo;

    /** 推荐（0-否，1-是） */
    @Excel(name = "推荐", readConverterExp = "0=否,1=是")
    private Integer isRecommend;

    /** 排序 */
    @Excel(name = "排序")
    private Integer sort;

    /** 状态（0-显示，1-隐藏） */
    @Excel(name = "状态", readConverterExp = "0=显示,1=隐藏")
    private Integer status;

    /** 备注 */
    @Excel(name = "备注")
    private String remarks;

    /** 发布时间 */
    private Date publicationTime;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /** 发布人 */
    private String publisher;

    /** 删除时间 */
    private Date deleteTime;

    /** 删除人 */
    private String deleteBy;

    /** 删除标记（0-正常，1-删除） */
    private Integer delFlag;

    private List<TbMajorClass> childrenList;

}
