package com.usky.sas.mqtt.dto;

import lombok.Data;

/**
 * 停车场车牌抓拍事件消息DTO（对应MQTT报文结构）
 */
@Data
public class ParkingEventMessage {

    // MQTT消息基础字段
    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 platePicId;
    private String eventPicId;
    private String gisId;
    private Integer eventSystem;
    private String entranceCode;
    private String plateNo;
    private Integer plateType;
    private String plateColor;
    private Integer carType;
    private Integer accessType;
    private Integer carTypeCode;
    private Integer similarity;

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

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