package com.cico.nest.lcdp.boot.core.qxsd.adapter.web.vo.event;

import com.alibaba.fastjson2.JSONArray;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import com.cico.nest.lcdp.boot.core.qxsd.infrastructure.gatewayimpl.database.dataobject.EventHisDO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * @author zws
 * @date 2024/9/19
 */
@Data
public class EventHisRespVO {

    /**
     * 事件id
     */
    @Schema(description = "事件id", requiredMode = Schema.RequiredMode.REQUIRED)
    private String eventId;


    /**
     * 拓展对象 {@link EventHisDO.EventHisExpandInfo}
     *
     */
    @TableField(typeHandler = JacksonTypeHandler.class)
    private JSONArray expandInfo;
    /**
     * 历史车辆轨迹
     */
    @Schema(description = "历史车辆轨迹", requiredMode = Schema.RequiredMode.REQUIRED)
    private JSONArray hisVehicleInfo;

    /**
     * 事件图片
     */
    @Schema(description = "事件图片", requiredMode = Schema.RequiredMode.REQUIRED)
    private List<String> eventImagesPath;

    /**
     * 卡口图片
     */
    @Schema(description = "卡口图片", requiredMode = Schema.RequiredMode.REQUIRED)
    private List<Map> bayonetImage;

    /**
     * 海康摄像头唯一编码
     */
    private String cameraIndexCode;

    /**
     * 视频地址
     */
    @Schema(description = "视频地址", requiredMode = Schema.RequiredMode.REQUIRED)
    private String videoPath;

    @Schema(description = "是否存在历史数据", requiredMode = Schema.RequiredMode.REQUIRED)
    private boolean existHisData = false;
}
