From afdbaa02913adb95cb9701d1a0a3a3a65c48b13a Mon Sep 17 00:00:00 2001
From: xiaoyong931011 <15274802129@163.com>
Date: Wed, 26 May 2021 20:28:49 +0800
Subject: [PATCH] 20210526 聊天
---
src/main/java/com/xcong/excoin/modules/otc/controller/OtcMsgController.java | 31 ++++++++++++++++++++++++++-----
1 files changed, 26 insertions(+), 5 deletions(-)
diff --git a/src/main/java/com/xcong/excoin/modules/otc/controller/OtcMsgController.java b/src/main/java/com/xcong/excoin/modules/otc/controller/OtcMsgController.java
index cd3339f..c6bde94 100644
--- a/src/main/java/com/xcong/excoin/modules/otc/controller/OtcMsgController.java
+++ b/src/main/java/com/xcong/excoin/modules/otc/controller/OtcMsgController.java
@@ -2,14 +2,11 @@
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.xcong.excoin.common.response.Result;
-import com.xcong.excoin.modules.otc.dto.ChatBoxDto;
-import com.xcong.excoin.modules.otc.dto.MsgListDto;
-import com.xcong.excoin.modules.otc.dto.OrderListDto;
-import com.xcong.excoin.modules.otc.dto.SendMsgDto;
+import com.xcong.excoin.modules.otc.dto.*;
import com.xcong.excoin.modules.otc.service.OtcMsgService;
import com.xcong.excoin.modules.otc.vo.ChatBoxVo;
+import com.xcong.excoin.modules.otc.vo.ChatOrderVo;
import com.xcong.excoin.modules.otc.vo.MsgListVo;
-import com.xcong.excoin.modules.otc.vo.OrderListVo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiResponse;
@@ -46,6 +43,18 @@
}
/**
+ * 联系卖家或者联系买家
+ */
+ @ApiOperation(value = "联系卖家或者联系买家")
+ @ApiResponses({
+ @ApiResponse(code = 200, message = "success", response = ChatBoxVo.class)
+ })
+ @PostMapping(value = "/getChatBoxConnect")
+ public Result getChatBoxConnect(@RequestBody ConnectDto connectDto) {
+ return otcMsgService.getChatBoxConnect(connectDto);
+ }
+
+ /**
* 进入聊天框,获取聊天记录
*/
@ApiOperation(value = "进入聊天框,获取聊天记录")
@@ -58,6 +67,18 @@
}
/**
+ * 进入聊天框,获取聊天记录---获取未完成记录
+ */
+ @ApiOperation(value = "进入聊天框---获取未完成记录")
+ @ApiResponses({
+ @ApiResponse(code = 200, message = "success", response = ChatOrderVo.class)
+ })
+ @PostMapping(value = "/getChatOrder")
+ public Result getChatOrder(@RequestBody ChatOrderDto chatOrderDto) {
+ return otcMsgService.getChatOrder(chatOrderDto);
+ }
+
+ /**
* 发送消息
*/
@ApiOperation(value = "发送消息")
--
Gitblit v1.9.1