package com.zksy.base.domain.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Map;

@Data
@ApiModel("设备GIS点位VO")
public class DeviceGisVO {

    @ApiModelProperty("设备ID")
    private String equipmentId;

    @ApiModelProperty("设备编码")
    private String equipmentCode;

    @ApiModelProperty("设备名称")
    private String equipmentName;

    @ApiModelProperty("设备类型ID")
    private String equipmentTypeId;

    @ApiModelProperty("设备类型名称")
    private String equipmentTypeName;

    @ApiModelProperty("设备经度")
    private BigDecimal longitude;

    @ApiModelProperty("设备纬度")
    private BigDecimal latitude;

    @ApiModelProperty("百度经度")
    private BigDecimal bdLon;

    @ApiModelProperty("百度纬度")
    private BigDecimal bdLat;

    @ApiModelProperty("设备位置")
    private String equipmentLocation;

    @ApiModelProperty("在线状态 0-离线 1-在线")
    private Integer onlineStatus;

    @ApiModelProperty("报警状态 0-正常 1-报警")
    private Integer alarmStatus;

    @ApiModelProperty("当前状态 1-在用 2-闲置 3-维修 4-报废 5-待入库")
    private Integer currentStatus;

    @ApiModelProperty("告警等级 1-4，1级最高（异常设备用）")
    private Integer alertLevel;

    @ApiModelProperty("最新监测数据（按设备类型动态返回）")
    private Map<String, Object> latestData;

    @ApiModelProperty("最后数据更新时间")
    private LocalDateTime lastDataTime;
}
