Commit db19ca0c by 罗长华

修复消息撤回接口报错的问题

parent cae4b257
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment