package com.usky.sas.mqtt.dto;

import lombok.Data;

/**
 * 抓拍事件消息DTO（对应MQTT报文结构）
 */
@Data
public class SnapEventMessage {

    // MQTT消息基础字段
    private String method;          // "event" 或其他
    private String id;

    // 抓拍事件特有字段（与数据表字段对应）
    private String deviceId;
    private Integer channel;
    private String triggerTime;     // 字符串格式，需要转换
    private Integer eventCode;
    private String note;
    private String scenePicId;
    private String eventPicId;
    private String gisId;
    private String relPerson;
    private String dealPerson;
    private Integer eventSystem;
    private Integer similarity;
    private Integer notify;
    private String feature;
    private Integer scene;
    private String personCode;
    private String prepersonId;
    private Integer count;

    // 图片信息（如果有）
    private PicInfo snapPic;

    /**
     * 图片信息内部类（复用USB事件的结构）
     */
    @Data
    public static class PicInfo {
        private String url;
        private String path;
    }
}