package cn.iocoder.yudao.module.pms.controller.admin.iotdevicetemplate.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;
import java.util.List;

@Schema(description = "管理后台 - PMS 功能优化 设备模板 Response VO")
@Data
@ExcelIgnoreUnannotated
public class IotDeviceTemplateRespVO {

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

    @Schema(description = "所属设备分类", example = "22225")
    @ExcelProperty("所属设备分类")
    private Long deviceCategoryId;

    @Schema(description = "所属设备id", example = "22225")
    @ExcelProperty("所属设备id")
    private Long deviceId;

    @Schema(description = "所属设备分类名称", example = "pms")
    @ExcelProperty("所属设备分类名称")
    private String deviceCategoryName;

    @Schema(description = "模板名称", example = "赵六")
    @ExcelProperty("模板名称")
    private String name;

    @Schema(description = "模板编码")
    @ExcelProperty("模板编码")
    private String code;

    @Schema(description = "模板属性 json 格式数据")
    @ExcelProperty("模板属性 json 格式数据")
    private List<DeviceTemplateAttrs> attrs;

    @Schema(description = "模板描述", example = "随便")
    @ExcelProperty("模板描述")
    private String description;

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

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

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

    @Schema(description = "模板版本号")
    @ExcelProperty("模板版本号")
    private Integer version;

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

}