package org.xyzh.api.workcase.dto;

import java.util.Date;

import org.xyzh.common.dto.BaseDTO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * @description    聊天室成员表数据对象DTO
 * @filename    TbChatRoomMemberDTO.java
 * @author    cascade
 * @copyright xyzh
 * @since 2025-12-20
 */
@Data
@Schema(description = "聊天室成员表对象")
public class TbChatRoomMemberDTO extends BaseDTO {
    private static final long serialVersionUID = 1L;

    @Schema(description = "成员记录ID")
    private String memberId;

    @Schema(description = "聊天室ID")
    private String roomId;

    @Schema(description = "用户ID（来客ID或员工ID）")
    private String userId;

    @Schema(description = "用户类型：guest-来客 staff-客服 ai-AI助手")
    private String userType;

    @Schema(description = "用户名称")
    private String userName;

    @Schema(description = "状态：active-活跃 left-已离开 removed-被移除")
    private String status;

    @Schema(description = "该成员的未读消息数")
    private Integer unreadCount;

    @Schema(description = "最后阅读时间")
    private Date lastReadTime;

    @Schema(description = "最后阅读的消息ID")
    private String lastReadMsgId;

    @Schema(description = "加入时间")
    private Date joinTime;

    @Schema(description = "离开时间")
    private Date leaveTime;
}
