package com.xiaoniu.system.platformsettings.region.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * 省市区VO
 *
 * @author Wzp
 */
@Data
@Schema(description = "省市区联级接口")
public class RegionVO implements Serializable {

    @Schema(description = "id")
    private Integer id;

    @Schema(description = "上级id")
    private Integer pid;

    @Schema(description = "名称")
    private String name;

    @Schema(description = "子列表")
    private List<RegionVO> children = new ArrayList<RegionVO>();

}
