package com.usky.sas.service.dto.agbox;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Data;

import java.util.List;

/**
 * AG 接口 getBuilding 响应 - 区域信息（楼栋）分页
 */
@Data
@JsonIgnoreProperties(ignoreUnknown = true)
public class BuildingVO {

    private BuildingListResult result;

    @Data
    @JsonIgnoreProperties(ignoreUnknown = true)
    public static class BuildingListResult {
        /** 楼栋列表 */
        private List<BuildingList> buildingList;
        /** 当前页数量 */
        private Long count;
        /** 当前页码 */
        private Integer page;
        /** 每页数量 */
        private Integer pageSize;
        /** 总页数 */
        private Integer totalPage;
    }

    @Data
    @JsonIgnoreProperties(ignoreUnknown = true)
    public static class BuildingList {
        private String buildingCode;
        private String buildingNo;
        private Integer floorTotal;
        private Integer houseTotal;
        private String note;
        private String gisId;
        private String villageCode;
        private Integer placeType;
        private String updateTime;
        private String createTime;
    }
}
