package cn.iocoder.yudao.module.iot.controller.admin.mqttrecord.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

@Schema(description = "管理后台 - 数采记录 Response VO")
@Data
@ExcelIgnoreUnannotated
public class MqttRecordRespVO {

    @Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "22946")
    @ExcelProperty("ID")
    private Long id;

    @Schema(description = "机台", example = "赵六")
    @ExcelProperty("机台")
    private String machineName;

    @Schema(description = "采集时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("采集时间")
    private LocalDateTime deviceDataTime;
    @Schema(description = "采集时间sss")
    @ExcelProperty("采集时间sss")
    private Long deviceDataTimeLong;

    @Schema(description = "数据")
    @ExcelProperty("数据")
    private String deviceData;

    @Schema(description = "设备编码")
    @ExcelProperty("设备编码")
    private String deviceCode;

    @Schema(description = "设备名称", example = "张三")
    @ExcelProperty("设备名称")
    private String deviceName;

    @Schema(description = "用户", example = "张三")
    @ExcelProperty("用户")
    private String workerName;

    @Schema(description = "网关")
    @ExcelProperty("网关")
    private String gatewayCode;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}