2026-06-30 24681c81c09022f584a57006f2534b5f74723414
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
package cn.iocoder.yudao.module.im.controller.admin.message.vo.privates;
 
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
 
import jakarta.validation.constraints.Max;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotNull;
 
@Schema(description = "管理后台 - 私聊历史消息列表 Request VO")
@Data
public class ImPrivateMessageListReqVO {
 
    @Schema(description = "接收人编号(对方)", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @NotNull(message = "接收人编号不能为空")
    private Long receiverId;
 
    @Schema(description = "起始消息编号,从该 id 往前拉取(不含)。为空则从最新消息开始", example = "1024")
    private Long maxId;
 
    @Schema(description = "拉取数量", requiredMode = Schema.RequiredMode.REQUIRED, example = "20")
    @NotNull(message = "拉取数量不能为空")
    @Min(value = 1, message = "拉取数量最小值为 1")
    @Max(value = 200, message = "拉取数量最大值为 200")
    private Integer limit;
 
}