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

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 = "管理后台 - IoT通用物模型 Response VO")
@Data
@ExcelIgnoreUnannotated
public class ThingModelCommonRespVO {

    @Schema(description = "物模型功能编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "20707")
    @ExcelProperty("物模型功能编号")
    private Long id;

    @Schema(description = "功能标识", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("功能标识")
    private String identifier;

    @Schema(description = "功能名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "赵六")
    @ExcelProperty("功能名称")
    private String name;

    @Schema(description = "功能描述", example = "你猜")
    @ExcelProperty("功能描述")
    private String description;

    @Schema(description = "功能类型（1 - 属性，2 - 服务，3 - 事件）", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @ExcelProperty("功能类型（1 - 属性，2 - 服务，3 - 事件）")
    private Integer type;

    @Schema(description = "属性（存储 ThingModelProperty 的 JSON 数据）")
    @ExcelProperty("属性（存储 ThingModelProperty 的 JSON 数据）")
    private String property;

    @Schema(description = "事件（存储 ThingModelEvent 的 JSON 数据）")
    @ExcelProperty("事件（存储 ThingModelEvent 的 JSON 数据）")
    private String event;

    @Schema(description = "服务（存储服务的 JSON 数据）")
    @ExcelProperty("服务（存储服务的 JSON 数据）")
    private String service;

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

}