package com.yzt.airconditionersystem.bean;

import com.baomidou.mybatisplus.annotation.TableField;
import com.sun.org.apache.xpath.internal.operations.Bool;
import lombok.Data;

import java.util.List;

/**
 * Layui树组件类
 * @author TzZach
 * @since 2022-06-22 22:58
 */
@Data
public class Tree<T> {
    /**
     * 无父节点的parentId为0
     */
    @TableField(exist = false)
    public static final Integer NO_PARENT = 0;

    /**
     * 显示的字
     */
    @TableField(exist = false)
    private String title;

    /**
     * 是否展开
     */
    @TableField(exist = false)
    private Boolean spread = false;

    /**
     * 是否被选中
     */
    @TableField(exist = false)
    private Boolean checked;

    /**
     * 子节点
     */
    @TableField(exist = false)
    private List<T> children;

}
