package com.zhujizheng.IHome.chat.service; import com.zhujizheng.IHome.chat.dto.PYSingleChatDTO; import com.zhujizheng.IHome.chat.vo.PYSingleChatAckVO; import java.util.ArrayList; import java.util.List; public interface PYSingleChatService { /** * @Description: 新增单聊消息 * @Param: com.zhujizheng.IHome.chat.dto.PYSingleChatDTO; * @return: com.zhujizheng.IHome.chat.vo.PYSingleChatAckVO; * @Author: 朱吉峥 * @Date: 2020/05/03 */ PYSingleChatAckVO pushSingleChatWithDTO(PYSingleChatDTO pushDTO); /** * @Description: 查询最后一条聊天记录 * @Param: [发送者id,接收者id] * @return: com.zhujizheng.IHome.chat.vo.PYSingleChatAckVO; * @Author: 朱吉峥 * @Date: 2021/04/25 */ PYSingleChatAckVO getLastSingleChatVO(int sendId, int receiveId); /** * @Description: 会查询所有离线消息,所有本地获取到消息后需要对所有已收到的消息进行验证、去重 * @Param: 【发送者id,接收者id, 最新时间】; * @return: com.zhujizheng.IHome.chat.vo.PYSingleChatAckVO; * @Author: 朱吉峥 * @Date: 2020/05/03 */ List pullOfflineSingleChatVO(Integer sendId, Integer receiveId, Long latestTime); /** * @Description: 更新聊天消息状态为成功 * @Param: 消息seq; * @return: 非0成功,否则失败 * @Author: 朱吉峥 * @Date: 2020/05/03 */ int succeedSingleChat(String msgSeq); /** * @Description: 隐藏聊天信息 * @Param: 消息seq; * @return: 非0成功,否则失败 * @Author: 朱吉峥 * @Date: 2020/05/03 */ int hideSingleChat(String msgSeq); /** * @Description: 撤回聊天信息 * @Param: 消息seq; * @return: 非0成功,否则失败 * @Author: 朱吉峥 * @Date: 2020/05/03 */ int revokeSingleChat(String msgSeq); /** * @Description: 删除聊天信息 * @Param: 消息seq; * @return: 非0成功,否则失败 * @Author: 朱吉峥 * @Date: 2021/03/14 */ int deleteSingleChat(String msgSeq); /** * @Description: 更新聊天信息离线状态 * @Param: 消息seq; * @return: 非0成功,否则失败 * @Author: 朱吉峥 * @Date: 2020/05/20 */ int updateOffline(String msgSeq); /** * @Description: 会查询所有消息,所有本地获取到消息后需要对所以已收到的消息进行验证、去重 * @Param: 【发送者id,接收者id】; * @return: com.zhujizheng.IHome.chat.vo.PYSingleChatAckVO; * @Author: 朱吉峥 * @Date: 2020/05/20 */ List syncChatMsg(Integer sendId, Integer receiveId); /** * @Description: 获取单条消息 * @Param: msgSeq; * @return: com.zhujizheng.IHome.chat.vo.PYSingleChatAckVO; * @Author: 朱吉峥 * @Date: 2021/05/16 */ PYSingleChatAckVO getChatMsgBySeq(String msgSeq); }