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 com.imdroid.secapi.easyexcel.LocalTimeStringConverter;
import lombok.Data;

import java.time.LocalDateTime;
import java.time.LocalTime;

/**
 * GNSS状态消息，每个工作周期开始时上报一次
 *
 * @author LiGang
 */
@Data
@TableName(value = "gnssstatusmsg")
public class GnssStatusMsg {
    @TableId(value = "id", type = IdType.AUTO)
    @ExcelIgnore
    Long id;

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

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

    @ExcelProperty(value = "设备时间", converter = LocalTimeStringConverter.class)
    LocalTime devicetime;

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

    @ExcelProperty("roll")
    Float roll;

    @ExcelProperty("pitch")
    Float pitch;

    @ExcelProperty("yaw")
    Float yaw;

    @ExcelProperty("dtu状态")
    Short dtustate;

    @ExcelProperty("信号强度")
    Short rssi;

    @ExcelProperty("电压")
    Integer voltage;

    @ExcelProperty("温度")
    Float temperature;

    @ExcelProperty("湿度")
    Float humidity;
}
