package com.junmp.jyzb.api.bean.dto;

import lombok.Data;

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

@Data
public class EquipmentTreeDto {
    private String id;
    private String name;
    private String unit;
    private String unitType;
    private String parentId;
    private String code;
    private Integer state;
    private Integer type;
    private String warrantyPeriod;
    private String maintenancePeriod;
    private Boolean isLeaf;
    private List<EquipmentTreeDto> children = new ArrayList<>();
    public void addChildren(EquipmentTreeDto treeDto){
        children.add(treeDto);
    }

}
