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

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

import java.util.List;

/**
 * AG 接口 getEntrance 响应 - 出入口分页
 */
@Data
@JsonIgnoreProperties(ignoreUnknown = true)
public class EntranceVo {

    private EntranceResult result;

    @Data
    @JsonIgnoreProperties(ignoreUnknown = true)
    public static class EntranceResult {
        /** 出入口列表 */
        private List<EntranceList> entranceList;
        /** 当前页数量 */
        private Long count;
        /** 总页数 */
        private Integer totalPage;
    }

    @Data
    @JsonIgnoreProperties(ignoreUnknown = true)
    public static class EntranceList {
        /** 出入口编码（主键） */
        private String entranceCode;
        private String name;
        private String villageCode;
        private String address;
        /** 设备id列表 */
        private List<String> deviceIds;
        private String picId;
        private String updateTime;
        private String createTime;
        /** 出入口图片 */
        private EntrancePicUrl entrancePicUrl;
    }

    @Data
    @JsonIgnoreProperties(ignoreUnknown = true)
    public static class EntrancePicUrl {
        private String url;
        private String path;
    }
}
