package com.snack.server.module.chat.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 会话详情（含两边最新序号）
 */
@Data
@Schema(description = "客服会话详情")
public class ChatSessionDetailVO implements Serializable {

    @Schema(description = "会话基本信息")
    private ChatSessionVO session;

    @Schema(description = "用户端最大已确认 seq（断线补差起点）")
    private Long userSeq;

    @Schema(description = "客服端最大已确认 seq")
    private Long adminSeq;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Schema(description = "关闭时间")
    private LocalDateTime closeTime;
}
