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

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

import java.util.List;

/**
 * AG 接口 getEquip 响应 - 实有设施/装备分页
 */
@Data
@JsonIgnoreProperties(ignoreUnknown = true)
public class EquipVo {

    private EquipResult result;

    @Data
    @JsonIgnoreProperties(ignoreUnknown = true)
    public static class EquipResult {
        /** 装备列表 */
        private List<EquipMsg> equipList;
        /** 当前页数量 */
        private Long count;
        /** 总页数 */
        private Integer totalPage;
    }

    @Data
    @JsonIgnoreProperties(ignoreUnknown = true)
    public static class EquipMsg {
        /** 装备编码（主键） */
        private String code;
        private String equipName;
        private Integer equipType;
        private String villageCode;
        private Integer floor;
        private String urlId;
        private String gisId;
        private String remark;
        private String updateTime;
        private String createTime;
        /** 装备图片 */
        private EquipPicUrl equipPicUrl;
    }

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