package com.zhujizheng.IHome.generator.mapper; import com.zhujizheng.IHome.generator.dao.PYSingleChat; import org.apache.ibatis.annotations.Param; import java.util.List; public interface PYSingleChatMapper { /** * @Description: 插入单聊数据 * @Param: com.zhujizheng.IHome.generator.dao.PYSingleChat; * @return: 非0成功 否则失败 * @Author: 朱吉峥 * @Date: 2020/05/03 */ int insertSingleChat(PYSingleChat chat); /** * @Description: 查询离线聊天数据 * @Param: [发送者id,接收者id, 最新时间] * @return: com.zhujizheng.IHome.generator.dao.PYSingleChat; * @Author: 朱吉峥 * @Date: 2020/05/03 */ List selectOfflineSingleChat(@Param("sendId") Integer sendId, @Param("receiveId") Integer receiveId, @Param("latestTime") Long latestTime); /** * @Description: 查询最后一条有效聊天记录 * @Param: [发送者id,接收者id] * @return: com.zhujizheng.IHome.generator.dao.PYSingleChat; * @Author: 朱吉峥 * @Date: 2020/04/25 */ PYSingleChat selectLastSingleChat(@Param("sendId") int sendId, @Param("receiveId") int receiveId); /** * @Description: 查询某一条聊天消息 * @Param: 消息唯一标识符 * @return: com.zhujizheng.IHome.generator.dao.PYSingleChat; * @Author: 朱吉峥 * @Date: 2020/05/03 */ PYSingleChat selectSingleChatWithMsgSeq(@Param("msgSeq") String msgSeq); /** * @Description: 撤回聊天消息 * @Param: 消息seq * @return: 非0成功 否则失败 * @Author: 朱吉峥 * @Date: 2020/05/03 */ int revokeMsg(@Param("msgSeq") String msgSeq); /** * @Description: 隐藏聊天消息 * @Param: 消息seq * @return: 非0成功 否则失败 * @Author: 朱吉峥 * @Date: 2020/05/03 */ int hideMsg(@Param("msgSeq") String msgSeq); /** * @Description: 删除聊天消息 * @Param: 消息seq * @return: 非0成功 否则失败 * @Author: 朱吉峥 * @Date: 2020/05/03 */ int deleteMsg(@Param("msgSeq") String msgSeq); /** * @Description: 更新消息发送是否成功的状态 * @Param: [消息状态,消息seq] * @return: 非0成功 否则失败 * @Author: 朱吉峥 * @Date: 2020/05/03 */ int updateStatus(@Param("status") Integer status, @Param("msgSeq") String msgSeq); /** * @Description: 改变聊天消息离线状态 * @Param: 消息seq * @return: 非0成功 否则失败 * @Author: 朱吉峥 * @Date: 2020/05/20 */ int updateOffline(@Param("msgSeq") String msgSeq); /** * @Description: 查询所有消息 * @Param: [发送者id,接收者id] * @return: com.zhujizheng.IHome.generator.dao.PYSingleChat; * @Author: 朱吉峥 * @Date: 2020/05/20 */ List selectAllChatMsg(@Param("sendId") Integer sendId, @Param("receiveId") Integer receiveId); }