committed by
Gitee
98 changed files with 1062 additions and 1306 deletions
@ -1,25 +1,58 @@ |
|||||
package com.bx.implatform.service; |
package com.bx.implatform.service; |
||||
|
|
||||
import com.baomidou.mybatisplus.extension.service.IService; |
import com.baomidou.mybatisplus.extension.service.IService; |
||||
import com.bx.implatform.vo.GroupMessageVO; |
|
||||
import com.bx.implatform.entity.GroupMessage; |
|
||||
import com.bx.implatform.dto.GroupMessageDTO; |
import com.bx.implatform.dto.GroupMessageDTO; |
||||
|
import com.bx.implatform.entity.GroupMessage; |
||||
|
import com.bx.implatform.vo.GroupMessageVO; |
||||
|
|
||||
import java.util.List; |
import java.util.List; |
||||
|
|
||||
|
|
||||
public interface IGroupMessageService extends IService<GroupMessage> { |
public interface IGroupMessageService extends IService<GroupMessage> { |
||||
|
|
||||
|
/** |
||||
Long sendMessage(GroupMessageDTO vo); |
* 发送群聊消息(高并发接口,查询mysql接口都要进行缓存) |
||||
|
* |
||||
|
* @param dto 群聊消息 |
||||
|
* @return 群聊id |
||||
|
*/ |
||||
|
Long sendMessage(GroupMessageDTO dto); |
||||
|
|
||||
|
/** |
||||
|
* 撤回消息 |
||||
|
* |
||||
|
* @param id 消息id |
||||
|
*/ |
||||
void recallMessage(Long id); |
void recallMessage(Long id); |
||||
|
|
||||
|
/** |
||||
|
* |
||||
|
* 异步拉取群聊消息,通过websocket异步推送 |
||||
|
*/ |
||||
void pullUnreadMessage(); |
void pullUnreadMessage(); |
||||
|
|
||||
|
/** |
||||
|
* 拉取消息,只能拉取最近1个月的消息,一次拉取100条 |
||||
|
* |
||||
|
* @param minId 消息起始id |
||||
|
* @return 聊天消息列表 |
||||
|
*/ |
||||
List<GroupMessageVO> loadMessage(Long minId); |
List<GroupMessageVO> loadMessage(Long minId); |
||||
|
|
||||
|
/** |
||||
|
* 消息已读,同步其他终端,清空未读数量 |
||||
|
* |
||||
|
* @param groupId 群聊 |
||||
|
*/ |
||||
void readedMessage(Long groupId); |
void readedMessage(Long groupId); |
||||
|
|
||||
|
/** |
||||
|
* 拉取历史聊天记录 |
||||
|
* |
||||
|
* @param groupId 群聊id |
||||
|
* @param page 页码 |
||||
|
* @param size 页码大小 |
||||
|
* @return 聊天记录列表 |
||||
|
*/ |
||||
List<GroupMessageVO> findHistoryMessage(Long groupId, Long page, Long size); |
List<GroupMessageVO> findHistoryMessage(Long groupId, Long page, Long size); |
||||
} |
} |
||||
|
|||||
@ -1,24 +1,58 @@ |
|||||
package com.bx.implatform.service; |
package com.bx.implatform.service; |
||||
|
|
||||
import com.baomidou.mybatisplus.extension.service.IService; |
import com.baomidou.mybatisplus.extension.service.IService; |
||||
import com.bx.implatform.vo.PrivateMessageVO; |
|
||||
import com.bx.implatform.entity.PrivateMessage; |
|
||||
import com.bx.implatform.dto.PrivateMessageDTO; |
import com.bx.implatform.dto.PrivateMessageDTO; |
||||
|
import com.bx.implatform.entity.PrivateMessage; |
||||
|
import com.bx.implatform.vo.PrivateMessageVO; |
||||
|
|
||||
import java.util.List; |
import java.util.List; |
||||
|
|
||||
|
|
||||
public interface IPrivateMessageService extends IService<PrivateMessage> { |
public interface IPrivateMessageService extends IService<PrivateMessage> { |
||||
|
|
||||
Long sendMessage(PrivateMessageDTO vo); |
/** |
||||
|
* 发送私聊消息(高并发接口,查询mysql接口都要进行缓存) |
||||
|
* |
||||
|
* @param dto 私聊消息 |
||||
|
* @return 消息id |
||||
|
*/ |
||||
|
Long sendMessage(PrivateMessageDTO dto); |
||||
|
|
||||
|
|
||||
|
/** |
||||
|
* 撤回消息 |
||||
|
* |
||||
|
* @param id 消息id |
||||
|
*/ |
||||
void recallMessage(Long id); |
void recallMessage(Long id); |
||||
|
|
||||
|
/** |
||||
|
* 拉取历史聊天记录 |
||||
|
* |
||||
|
* @param friendId 好友id |
||||
|
* @param page 页码 |
||||
|
* @param size 页码大小 |
||||
|
* @return 聊天记录列表 |
||||
|
*/ |
||||
List<PrivateMessageVO> findHistoryMessage(Long friendId, Long page,Long size); |
List<PrivateMessageVO> findHistoryMessage(Long friendId, Long page,Long size); |
||||
|
|
||||
|
/** |
||||
|
* 异步拉取私聊消息,通过websocket异步推送 |
||||
|
*/ |
||||
void pullUnreadMessage(); |
void pullUnreadMessage(); |
||||
|
|
||||
|
/** |
||||
|
* 拉取消息,只能拉取最近1个月的消息,一次拉取100条 |
||||
|
* |
||||
|
* @param minId 消息起始id |
||||
|
* @return 聊天消息列表 |
||||
|
*/ |
||||
List<PrivateMessageVO> loadMessage(Long minId); |
List<PrivateMessageVO> loadMessage(Long minId); |
||||
|
|
||||
|
/** |
||||
|
* 消息已读,将整个会话的消息都置为已读状态 |
||||
|
* |
||||
|
* @param friendId 好友id |
||||
|
*/ |
||||
void readedMessage(Long friendId); |
void readedMessage(Long friendId); |
||||
} |
} |
||||
|
|||||
|
After Width: | Height: | Size: 11 KiB |
@ -0,0 +1,26 @@ |
|||||
|
<template> |
||||
|
<div class="icp"> |
||||
|
<img class="icp-icon" src="../../assets/image/icp_logo.png"> |
||||
|
<a target="_blank" href="https://beian.miit.gov.cn/">粤ICP备2022140558号-1</a> |
||||
|
</div> |
||||
|
</template> |
||||
|
|
||||
|
<script> |
||||
|
</script> |
||||
|
|
||||
|
<style lang="scss"> |
||||
|
.icp { |
||||
|
position: fixed; |
||||
|
text-align: center; |
||||
|
bottom: 20px; |
||||
|
margin: 0 auto; |
||||
|
width: 100%; |
||||
|
color: #5c6b77; |
||||
|
|
||||
|
.icp-icon { |
||||
|
width: 20px; |
||||
|
height: 20px; |
||||
|
vertical-align: bottom; |
||||
|
} |
||||
|
} |
||||
|
</style> |
||||
Loading…
Reference in new issue