package com.sonic.pigeon.lib.input;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Builder
@AllArgsConstructor
@NoArgsConstructor
@Data
public class HistoryMessageInput {

    @ApiModelProperty("发送人用户ID")
    private Long fromUserId;

    @ApiModelProperty("接收人用户ID")
    private Long toUserId;

    @ApiModelProperty("开始时间")
    private Long beginTime;

    @ApiModelProperty("结束时间")
    private Long endTime;

    @ApiModelProperty("每页返回的消息数上限，最大为 100")
    private Integer limit;

    @ApiModelProperty("是否按时间正序，true：按时间正序；false：按时间倒序")
    private Boolean descending;
}
