移动端聊天实现
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<artifactId>common</artifactId>
|
||||
<artifactId>im-common</artifactId>
|
||||
|
||||
<properties>
|
||||
<java.version>1.8</java.version>
|
||||
|
||||
@@ -14,6 +14,7 @@ public class SyncReq extends RequestBase {
|
||||
private Long lastSequence;
|
||||
//一次拉取多少
|
||||
private Integer maxLimit;
|
||||
private Integer appId;
|
||||
|
||||
private String operater;
|
||||
}
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
<java.version>1.8</java.version>
|
||||
</properties>
|
||||
|
||||
<artifactId>service</artifactId>
|
||||
<artifactId>im-service</artifactId>
|
||||
|
||||
<dependencies>
|
||||
<!-- rabbitmq -->
|
||||
@@ -84,15 +84,10 @@
|
||||
<!-- common -->
|
||||
<dependency>
|
||||
<groupId>com.lld</groupId>
|
||||
<artifactId>common</artifactId>
|
||||
<artifactId>im-common</artifactId>
|
||||
<version>1.0.0-SNAPSHOT</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.lld</groupId>
|
||||
<artifactId>im-system</artifactId>
|
||||
<version>1.0.0-SNAPSHOT</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
|
||||
@@ -42,7 +42,7 @@ public class ConversationController {
|
||||
|
||||
@RequestMapping("/syncConversationList")
|
||||
public ResponseVO syncFriendShipList(@RequestBody @Validated SyncReq req,Integer appId) {
|
||||
req.setAppId(appId);
|
||||
// req.setAppId(appId);
|
||||
return conversationService.syncConversationSet(req);
|
||||
}
|
||||
|
||||
|
||||
@@ -181,9 +181,11 @@ public class ConversationService {
|
||||
queryWrapper.last(" limit " + req.getMaxLimit());
|
||||
queryWrapper.orderByAsc("sequence");
|
||||
|
||||
|
||||
log.info("============================= syncConversationSet ========================");
|
||||
log.info("============================= syncConversationSet ========================");
|
||||
log.info("============================= syncConversationSet ========================");
|
||||
|
||||
log.info(req.toString());
|
||||
|
||||
List<ImConversationSetEntity> list = imConversationSetMapper
|
||||
|
||||
@@ -75,6 +75,9 @@ public class ChatOperateReceiver {
|
||||
//消息接收确认
|
||||
MessageReadedContent messageContent
|
||||
= jsonObject.toJavaObject(MessageReadedContent.class);
|
||||
|
||||
logger.error("==============服务端接收到1106的信号:{}",messageContent);
|
||||
|
||||
messageSyncService.readMark(messageContent);
|
||||
}else if (Objects.equals(command, MessageCommand.MSG_RECALL.getCommand())) {
|
||||
// 撤回消息
|
||||
|
||||
@@ -29,7 +29,7 @@ import java.util.concurrent.TimeUnit;
|
||||
|
||||
/**
|
||||
* @description:
|
||||
* @author: lld
|
||||
* @author: rowger
|
||||
* @version: 1.0
|
||||
*/
|
||||
@Service
|
||||
@@ -155,7 +155,7 @@ public class MessageStoreService {
|
||||
* @description: 存储单人离线消息
|
||||
* @param
|
||||
* @return void
|
||||
* @author lld
|
||||
* @author lld
|
||||
*/
|
||||
public void storeOfflineMessage(OfflineMessageContent offlineMessage){
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<artifactId>tcp</artifactId>
|
||||
<artifactId>im-tcp</artifactId>
|
||||
<properties>
|
||||
<java.version>1.8</java.version>
|
||||
<mybatis-plus.version>3.3.0</mybatis-plus.version>
|
||||
|
||||
@@ -150,7 +150,6 @@ public class NettyServerHandler extends SimpleChannelInboundHandler<Message> {
|
||||
|| command == GroupEventCommand.MSG_GROUP.getCommand()){
|
||||
logger.info("***********************收到单聊或者群聊消息:{}", msg);
|
||||
|
||||
|
||||
try {
|
||||
String toId = "";
|
||||
CheckSendMessageReq req = new CheckSendMessageReq();
|
||||
|
||||
@@ -88,12 +88,6 @@
|
||||
<groupId>com.github.sgroschupf</groupId>
|
||||
<artifactId>zkclient</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.lld</groupId>
|
||||
<artifactId>common</artifactId>
|
||||
<version>1.0.0-SNAPSHOT</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.netflix.feign</groupId>
|
||||
<artifactId>feign-core</artifactId>
|
||||
|
||||
Reference in New Issue
Block a user