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

import lombok.*;
import java.util.*;
import io.swagger.v3.oas.annotations.media.Schema;
import cn.iocoder.yudao.framework.common.pojo.PageParam;
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 = "管理后台 - 运行记录分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class DeviceOperationRecordPageReqVO extends PageParam {

    @Schema(description = "设备ID", example = "18965")
    private Long deviceId;

    @Schema(description = "模型ID", example = "26876")
    private Long modelId;

    @Schema(description = "规则值")
    private String rule;

    @Schema(description = "地址值")
    private String addressValue;

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

    @Schema(description = "类型 1-RUNNING 2-ALRAM", example = "2")
    private Integer recordType;

}