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

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

    @Schema(description = "关联配方id", requiredMode = Schema.RequiredMode.REQUIRED, example = "1102")
//    @NotNull(message = "关联配方id不能为空")
    private Long recipeId;

    @Schema(description = "关联点位id", requiredMode = Schema.RequiredMode.REQUIRED, example = "21675")
//    @NotNull(message = "关联点位id不能为空")
    private Long attributeId;

    @Schema(description = "点位名字", example = "王五")
    private String attributeName;

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

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

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

    // 新增：批量创建的属性ID集合
    @Schema(description = "批量创建的属性ID集合", requiredMode = Schema.RequiredMode.REQUIRED)
    private List<Long> ids;

}