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

import cn.iocoder.yudao.module.pms.controller.admin.iotdevicetemplate.model.DeviceTemplateAttrs;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

@Schema(description = "管理后台 - 设备分类公共模板属性 Response VO")
@Data
@ExcelIgnoreUnannotated
public class IotDeviceCategoryTemplateAttrsRespVO {

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}