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

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import javax.validation.constraints.*;

@Schema(description = "管理后台 - 采集设备模型-点位管理新增/修改 Request VO")
@Data
public class DeviceModelAttributeSaveReqVO {

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

    @Schema(description = "点位编码", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "点位编码不能为空")
    private String attributeCode;

    @Schema(description = "点位名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋艿")
    @NotEmpty(message = "点位名称不能为空")
    private String attributeName;

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

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

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

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

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

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

    @Schema(description = "采集设备模型id", requiredMode = Schema.RequiredMode.REQUIRED, example = "16848")
    @NotNull(message = "采集设备模型id不能为空")
    private Long deviceModelId;

    @Schema(description = "采集点类型名称")
    private String typeName;
}