package org.dromara.domain.vo;

import org.dromara.domain.SenEventsObject;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;


/**
 * 事件对象视图对象 sen_events_object
 *
 * @author luogang
 * @date 2024-09-19
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = SenEventsObject.class)
public class SenEventsObjectVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @ExcelProperty(value = "主键")
    private Long id;

    /**
     * 事件id
     */
    @ExcelProperty(value = "事件id")
    private Long eventId;

    /**
     * 对象类型（如人、车等）
     */
    @ExcelProperty(value = "对象类型", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "如=人、车等")
    private String objectType;

    /**
     * 事件类型（字典event_type）
     */
    @ExcelProperty(value = "事件类型", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "event_type")
    private String eventType;

    /**
     * 对象标识（如车牌号、人脸特征码等）
     */
    @ExcelProperty(value = "对象标识", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "如=车牌号、人脸特征码等")
    private String objectId;

    /**
     * 对象属性（如品牌）
     */
    @ExcelProperty(value = "对象属性", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "如=品牌")
    private String objectAttr;


}
