package cn.iocoder.yudao.module.iot.controller.admin.devicemodelattribute.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 DeviceModelAttributeRespVO {

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

    @Schema(description = "点位编码", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("点位编码")
    private String attributeCode;

    @Schema(description = "点位名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋艿")
    @ExcelProperty("点位名称")
    private String attributeName;

    @Schema(description = "点位类型", example = "1")
    @ExcelProperty("点位类型")
    private String attributeType;

    @Schema(description = "类型名称", example = "1")
    @ExcelProperty("类型名称")
    private String typeName;

    @Schema(description = "数据类型", example = "2")
    @ExcelProperty("数据类型")
    private String dataType;

    @Schema(description = "寄存器地址")
    @ExcelProperty("寄存器地址")
    private String address;

    @Schema(description = "单位")
    private String dataUnit;

    @Schema(description = "单位")
    @ExcelProperty("单位")
    private String dataUnitName;

    @Schema(description = "倍率")
    @ExcelProperty("倍率")
    private Double ratio;

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

    @Schema(description = "采集设备模型id", requiredMode = Schema.RequiredMode.REQUIRED, example = "16848")
    @ExcelProperty("采集设备模型id")
    private Long deviceModelId;

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



}