package org.dromara.domain.vo;

import org.apache.poi.ss.formula.functions.T;
import org.dromara.domain.SenEvents;
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;
import java.util.Date;
import java.util.List;


/**
 * 事件信息视图对象 sen_events
 *
 * @author luogang
 * @date 2024-09-19
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = SenEvents.class)
public class SenEventsVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

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

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

    /**
     * 事件名称
     */
    @ExcelProperty(value = "事件名称")
    private String eventName;

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

    /**
     * 监控点id
     */
    @ExcelProperty(value = "监控点id")
    private Long pointId;

    /**
     * 监控点名称
     */
    @ExcelProperty(value = "监控点名称")
    private String pointName;

    /**
     * 区域id
     */
    @ExcelProperty(value = "区域id")
    private String areaId;

    /**
     * 区域名称
     */
    @ExcelProperty(value = "区域名称")
    private String areaName;

    /**
     * 事件对象类型（交通、城管、社区）
     */
    @ExcelProperty(value = "事件对象类型", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "交=通、城管、社区")
    private String eventObj;

    /**
     * 处理状态
     */
    @ExcelProperty(value = "处理状态")
    private String dealStatus;

    /**
     * 媒介数据
     */
    private List<SenEventsMediaVo> mediaList;

    /**
     * 创建时间
     */
    @ExcelProperty(value = "创建时间")
    private Date createTime;

    /**
     * 创建人
     */
    @ExcelProperty(value = "创建人")
    private Long createBy;


}
