package com.m2pool.chat.dto;

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

import java.time.LocalDateTime;

/**
 * @ClassName ChatRoomDto
 * @Description 客服 聊天室列表返回对象
 * @Author yyb
 * @Date 2025/4/14 14:28
 */
@Builder
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(description = "客服 聊天室列表返回对象")
public class ChatRoomDto {

    /**
     * 聊天室id
     */
    @ApiModelProperty(value = "聊天室id", example = "1")
    private Long id;
    /**
     * 聊天对象id：一般为客服
     */
    @ApiModelProperty(value = "聊天对象id：一般为客服", example = "1")
    private String userEmail;
    /**
     * 聊天室重要程度
     */
    @ApiModelProperty(value = "聊天室重要程度 0不重要 1重要", example = "1")
    private Integer flag;

    /**
     * 客户未读消息条数
     */
    @ApiModelProperty(value = "客户未读消息条数", example = "1")
    private Integer clientReadNum;


    /**
     * 用户回复时间
     */
    @ApiModelProperty(value = "用户回复时间", example = "2025-10-01 12:32:01")
    private LocalDateTime lastUserSendTime;

    /**
     * 客服回复时间
     */
    @ApiModelProperty(value = "客服回复时间", example = "2025-10-01 12:32:01")
    private LocalDateTime lastCustomerSendTime;

    /**
     * 聊天发起者id ：一般为游客或登录用户
     */
    @ApiModelProperty(value = "聊天发起者id ：一般为游客或登录用户", example = "1")
    private String selfEmail;

    @ApiModelProperty(value = "客服是否在线", example = "true")
    private boolean customerIsOnline;
}
