package com.sz.admin.monitor.pojo.vo.tree;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * ClassName: TreeNode
 * Package: com.sz.admin.monitor.pojo.dto.tree
 * Description: 通用树节点
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class TreeNodeVO {
    private Long id;
    private String name;
    private Integer type; // 0: Region, 1: Substation, 2: NVR,3: Camera
    private List<TreeNodeVO> children;
    public TreeNodeVO(Long id, String name, Integer type) {
        this.id = id;
        this.name = name;
        this.type = type;
    }
}
