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

import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
import cn.iocoder.yudao.framework.excel.core.convert.DictConvert;
import cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseDO;
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 = "管理后台 - 产线设备分页返回 Resq VO")
@Data
@ExcelIgnoreUnannotated
public class LineDeviceRespVO  {

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

    @Schema(description = "设备Id")
    private Long deviceId;

    @Schema(description = "组织编码")
    @ExcelProperty("组织编码")
    private String lineNode;

    @Schema(description = "组织名称")
    @ExcelProperty("组织名称")
    private String lineName;

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

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

    @Schema(description = "状态 1-在线 2-离线")
    @ExcelProperty(value = "连接状态", converter = DictConvert.class)
    @DictFormat("iot_gateway_status") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private String  status;

//    @Schema(description = "状态名称")
//    private String  statusName;

    @Schema(description = "采集时间")
    @ExcelProperty("采集时间")
    private String collectionTime;

}
