package com.yupi.project.model.dto.mqttlog;

import com.yupi.project.common.PageRequest;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

@EqualsAndHashCode(callSuper = true)
@Data
public class MqttLogQueryRequest extends PageRequest implements Serializable {

    private String messageId;
    private String direction;
    private String clientId;
    private String topic;
    private String payloadContains;
    private Integer qos;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;

    private Long relatedSessionId;
    private Long relatedTaskId;

    private static final long serialVersionUID = 1L;
} 