package com.usky.sas.mqtt.dto;

import lombok.Data;
import java.math.BigDecimal;

/**
 * 数据采集设备事件消息DTO
 */
@Data
public class AcquisitionEventMessage {

    private String method;          // "event" 或 "heart"
    private String id;
    private String deviceId;
    private Integer channel;
    private String triggerTime;     // 字符串格式时间
    private Integer eventCode;
    private String note;
    private String picId;
    private String gisId;
    private BigDecimal total;

    // 图片信息
    private PicInfo acquisitionPic;

    @Data
    public static class PicInfo {
        private String url;
        private String path;
    }
}