package cn.iocoder.yudao.module.pms.controller.admin.iotdevicecategorytemplateattrs.vo;

import cn.iocoder.yudao.module.pms.controller.admin.iotdevicetemplate.model.DeviceTemplateAttrs;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.Valid;

@Schema(description = "管理后台 - 设备分类公共模板属性新增/修改 Request VO")
@Data
public class IotDeviceCategoryTemplateAttrsSaveReqVO {

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

    @Schema(description = "设备分类id", example = "17218")
    private Long deviceCategoryId;

    @Schema(description = "公共模板id", example = "17218")
    private Long templateId;

    @Schema(description = "属性名称", example = "芋艿")
    private String name;

    @Schema(description = "属性编码")
    private String code;

    @Schema(description = "属性数据类型 string number boolean", example = "2")
    private String type;

    @Schema(description = "是否必填 0不必填 1必填")
    private Integer requiredFlag;

    @Schema(description = "默认值")
    private String defaultValue;

    @Schema(description = "属性值单位")
    private String unit;

    @Schema(description = "属性描述", example = "你说的对")
    private String description;

    @Schema(description = "状态 0启用  1停用", example = "1")
    private Integer status;

    @Schema(description = "备注", example = "随便")
    private String remark;

    @Schema(description = "排序")
    private Integer sort;

    @Schema(description = "下拉框选项")
    @Valid
    private DeviceTemplateAttrs selectOptions;

    @Schema(description = "属性版本号")
    private Integer version;

}