package com.scpyun.platform.jilinsscgsdp.pojo;

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

public class SimpleAreaNode {
    private String id;         // 节点ID
    private String name;       // 节点名称
    private String type;       // 类型（数据库数字，与平级节点一致）
    private Integer isValue;   // 是否虚拟节点（0=非虚拟，1=虚拟）
    private List<SimpleAreaNode> children = new ArrayList<>();

    public SimpleAreaNode(String id, String name, String type, Integer isValue) {
        this.id = id;
        this.name = name;
        this.type = type;
        this.isValue = isValue;
    }

    // getter和setter
    public String getId() { return id; }
    public void setId(String id) { this.id = id; }
    public String getName() { return name; }
    public void setName(String name) { this.name = name; }
    public String getType() { return type; }
    public void setType(String type) { this.type = type; }
    public Integer getIsValue() { return isValue; }
    public void setIsValue(Integer isValue) { this.isValue = isValue; }
    public List<SimpleAreaNode> getChildren() { return children; }
    public void setChildren(List<SimpleAreaNode> children) { this.children = children; }
}

