package com.webchat.domain.vo.dto;

import com.webchat.domain.vo.response.UserBaseResponseInfoVO;
import com.webchat.domain.vo.response.publicaccount.ArticleBaseResponseVO;
import lombok.Data;

import java.util.Date;


/**
 * 聊天消息搜索结果
 *
 */
@Data
public class ChatMessageSearchResultDTO extends AbstractBaseEsDTO{

    private Long id;

    /***
     * 发送人
     */
    private String sender;
    private UserBaseResponseInfoVO senderUser;

    /***
     * 代理发送人（群聊真实消息发送人）点对点消息，proxySender为空
     */
    private String proxySender;
    private UserBaseResponseInfoVO proxySenderUser;

    /***
     * 接收人
     */
    private String receiver;
    private UserBaseResponseInfoVO receiverUser;

    /**
     * 消息类型
     *
     * @see com.webchat.common.enums.ChatMessageTypeEnum
     */
    private Integer type;

    private ArticleBaseResponseVO article;

    /***
     * 正文
     */
    private String message;

    /***
     * 发送时间
     */
    private Long sendDate;

    private Long updateDate;

}
