package com.mortals.xhx.module.classify.model;

import lombok.Data;

import java.util.List;
import java.util.concurrent.CopyOnWriteArrayList;

@Data
public class ClassifyTreeNode {

    private Long id;

    private Long parentId;

    private ClassifyOptionEntity preQuestion;

    private String name;

    private Integer type;
    private Integer ismust;
    private Integer level;

    //创建线程安全的list CopyOnWriteArrayList
    private List<ClassifyOptionEntity> question = new CopyOnWriteArrayList<>();

    private List<ClassifyTreeNode> children = new CopyOnWriteArrayList<>();


}
