package com.ruoyi.web.modules.region.vo;

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

/**
 * 省市区树节点
 */
public class RegionTreeVO
{
    private Integer id;

    private Integer pid;

    private String name;

    /** 1省 2市 3区县 */
    private Integer type;

    private Integer code;

    private List<RegionTreeVO> children = new ArrayList<>();

    public Integer getId()
    {
        return id;
    }

    public void setId(Integer id)
    {
        this.id = id;
    }

    public Integer getPid()
    {
        return pid;
    }

    public void setPid(Integer pid)
    {
        this.pid = pid;
    }

    public String getName()
    {
        return name;
    }

    public void setName(String name)
    {
        this.name = name;
    }

    public Integer getType()
    {
        return type;
    }

    public void setType(Integer type)
    {
        this.type = type;
    }

    public Integer getCode()
    {
        return code;
    }

    public void setCode(Integer code)
    {
        this.code = code;
    }

    public List<RegionTreeVO> getChildren()
    {
        return children;
    }

    public void setChildren(List<RegionTreeVO> children)
    {
        this.children = children;
    }
}
