Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wecloud_im_server
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hewei
wecloud_im_server
Commits
db19ca0c
Commit
db19ca0c
authored
Apr 11, 2022
by
罗长华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复消息撤回接口报错的问题
parent
cae4b257
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
8 deletions
+3
-8
core/src/main/java/com/wecloud/im/action/MessageAction.java
+3
-8
No files found.
core/src/main/java/com/wecloud/im/action/MessageAction.java
View file @
db19ca0c
...
...
@@ -13,7 +13,6 @@ import org.springframework.stereotype.Component;
import
com.alibaba.fastjson.JSON
;
import
com.wecloud.dispatch.annotation.ActionMapping
;
import
com.wecloud.dispatch.extend.ActionRequest
;
import
com.wecloud.im.param.GetReadersParam
;
import
com.wecloud.im.param.ImHistoryMessagePageParam
;
import
com.wecloud.im.param.MsgDeleteParam
;
...
...
@@ -23,7 +22,6 @@ import com.wecloud.im.service.ImMessageService;
import
com.wecloud.im.vo.OfflineMsgDto
;
import
com.wecloud.im.vo.ReaderList
;
import
com.wecloud.im.ws.model.WsResponse
;
import
com.wecloud.im.ws.sender.ChannelSender
;
/**
* @Author wenzhida
...
...
@@ -39,9 +37,6 @@ public class MessageAction {
@Autowired
private
ImMessageService
imMessageService
;
@Autowired
private
ChannelSender
channelSender
;
/**
* 消息撤回
* @param request
...
...
@@ -50,9 +45,9 @@ public class MessageAction {
*/
@ActionMapping
(
"/withdraw"
)
@ApiOperation
(
"消息撤回"
)
public
WsResponse
<
Map
<
String
,
Boolean
>>
withdraw
(
ActionRequest
request
,
ImMsgRecall
msgRecall
,
String
reqId
)
{
log
.
info
(
"撤回消息内容:{}"
,
JSON
.
toJSONString
(
msgRecall
));
boolean
r
=
imMessageService
.
withdrawMsg
(
msgRecall
);
public
WsResponse
<
Map
<
String
,
Boolean
>>
withdraw
(
ImMsgRecall
data
)
{
log
.
info
(
"撤回消息内容:{}"
,
JSON
.
toJSONString
(
data
));
Boolean
r
=
imMessageService
.
withdrawMsg
(
data
);
Map
<
String
,
Boolean
>
result
=
new
HashMap
<>();
result
.
put
(
"result"
,
r
);
return
WsResponse
.
ok
(
result
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment