package com.imdroid.secapi.dto;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * GNSS收发统计消息，每个工作周期结束的时候统计一次
 *
 * @author LiGang
 */
@Data
@TableName(value = "warninginfo")
public class WarningMsg {
    @TableId(value = "id", type = IdType.AUTO)
    @ExcelIgnore
    Long id;

    @ExcelProperty("租户id")
    Integer tenantid;

    @ExcelProperty("上报时间")
    LocalDateTime createtime;
    @ExcelProperty("消除时间")
    LocalDateTime cleartime;

    @ExcelProperty("设备编号")
    String deviceid;

    @ExcelProperty("设备类型")
    Short devicetype;

    @ExcelProperty("告警级别")
    Short level;

    @ExcelProperty("告警类型")
    Integer code;

    @ExcelProperty("告警内容")
    String info;
}
