package com.bonus.common.biz.domain;

import com.bonus.common.core.annotation.Excel;
import com.bonus.common.core.web.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

import java.util.ArrayList;
import java.util.List;

/**
 * 设备类型对象 ma_type_info
 * 
 * @author xsheng
 * @date 2023-12-02
 */
@Data
@ToString
@ApiModel("设备类型对象")
public class TypeInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 类型id */
    @Excel(name = "类型id")
    @ApiModelProperty(value = "类型id", required = true)
    private Long typeId;

    /** 父级id */
    @Excel(name = "父级id")
    @ApiModelProperty(value = "父级id", required = true)
    private Long parentId;

    /** 类型名称 */
    @Excel(name = "类型名称")
    @ApiModelProperty(value = "类型名称", required = true)
    private String typeName;

    /** 计量单位 */
    @Excel(name = "计量单位")
    @ApiModelProperty(value = "计量单位", required = true)
    private String unitName;

    /** 层级 */
    @Excel(name = "层级")
    @ApiModelProperty(value = "层级", required = true)
    private String level;

    /** 排序 */
    @Excel(name = "排序")
    @ApiModelProperty(value = "排序", required = true)
    private String sort;

    /** 是否删除 */
    @Excel(name = "是否删除")
    @ApiModelProperty(value = "是否删除", required = true)
    private String delFlag;

    /** 父部门名称 */
    @ApiModelProperty(value = "父部门名称", required = true)
    private String parentName;

    @ApiModelProperty(value = "上架数")
    private Integer maCount;

    /** 子部门 */
    @ApiModelProperty(value = "子部门", required = true)
    private List<TypeInfo> children = new ArrayList<TypeInfo>();

}
