package com.snack.server.module.chat.dto.req;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.io.Serializable;

/**
 * 客户端已读确认（断线补发用）
 */
@Data
@Schema(description = "客服消息 ACK 请求")
public class ChatAckReq implements Serializable {

    @NotNull(message = "会话 ID 不能为空")
    @Schema(description = "会话 ID", example = "1")
    private Long sessionId;

    @NotNull(message = "已确认序号不能为空")
    @Schema(description = "客户端最大已确认消息序号", example = "12")
    private Long lastSeq;
}
