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

import com.alibaba.excel.annotation.write.style.ColumnWidth;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;

@Schema(description = "管理后台 - 采集设备模型 Response VO")
@Data
@ExcelIgnoreUnannotated
public class DeviceModelRespVO {

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

    @Schema(description = "模型编码", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("模型编码")
    private String code;

    @Schema(description = "模型名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "赵六")
    @ExcelProperty("模型名称")
    private String name;

    @Schema(description = "通讯协议", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("通讯协议")
    private String protocol;

    @Schema(description = "备注", example = "你说的对")
    @ExcelProperty("备注")
    private String remark;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    @ColumnWidth(20) // 设置此列的宽度为 20 个字符的宽度
    private LocalDateTime createTime;

}