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

import cn.iocoder.yudao.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - IoT通用物模型分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class ThingModelCommonPageReqVO extends PageParam {

    @Schema(description = "功能标识")
    private String identifier;

    @Schema(description = "功能名称", example = "赵六")
    private String name;

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

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

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

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

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

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

}