package com.ylx.area.domain.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

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

/**
 * 用户首页查询地区返回vo
 */
@Data
public class CityVo implements Serializable {

    private static final long serialVersionUID = -7916708029160827482L;


    /**
     * 首字母
     */
    private String letter;
    /**
     * 城市集合
     */
    private List<City> cityList;

    @Data
    public static class City {
        /**
         * 区域主键
         */
        @ApiModelProperty(value = "区域ID")
        private String code;
        /**
         * 区域名称
         */
        @ApiModelProperty(value = "区域名称")
        private String name;

        public City(String code, String name) {
            this.code = code;
            this.name = name;
        }

        public City() {

        }
    }
}
