Commit db19ca0c by 罗长华

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

parent cae4b257
...@@ -13,7 +13,6 @@ import org.springframework.stereotype.Component; ...@@ -13,7 +13,6 @@ import org.springframework.stereotype.Component;
import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSON;
import com.wecloud.dispatch.annotation.ActionMapping; import com.wecloud.dispatch.annotation.ActionMapping;
import com.wecloud.dispatch.extend.ActionRequest;
import com.wecloud.im.param.GetReadersParam; import com.wecloud.im.param.GetReadersParam;
import com.wecloud.im.param.ImHistoryMessagePageParam; import com.wecloud.im.param.ImHistoryMessagePageParam;
import com.wecloud.im.param.MsgDeleteParam; import com.wecloud.im.param.MsgDeleteParam;
...@@ -23,7 +22,6 @@ import com.wecloud.im.service.ImMessageService; ...@@ -23,7 +22,6 @@ import com.wecloud.im.service.ImMessageService;
import com.wecloud.im.vo.OfflineMsgDto; import com.wecloud.im.vo.OfflineMsgDto;
import com.wecloud.im.vo.ReaderList; import com.wecloud.im.vo.ReaderList;
import com.wecloud.im.ws.model.WsResponse; import com.wecloud.im.ws.model.WsResponse;
import com.wecloud.im.ws.sender.ChannelSender;
/** /**
* @Author wenzhida * @Author wenzhida
...@@ -39,9 +37,6 @@ public class MessageAction { ...@@ -39,9 +37,6 @@ public class MessageAction {
@Autowired @Autowired
private ImMessageService imMessageService; private ImMessageService imMessageService;
@Autowired
private ChannelSender channelSender;
/** /**
* 消息撤回 * 消息撤回
* @param request * @param request
...@@ -50,9 +45,9 @@ public class MessageAction { ...@@ -50,9 +45,9 @@ public class MessageAction {
*/ */
@ActionMapping("/withdraw") @ActionMapping("/withdraw")
@ApiOperation("消息撤回") @ApiOperation("消息撤回")
public WsResponse<Map<String, Boolean>> withdraw(ActionRequest request, ImMsgRecall msgRecall, String reqId) { public WsResponse<Map<String, Boolean>> withdraw(ImMsgRecall data) {
log.info("撤回消息内容:{}", JSON.toJSONString(msgRecall)); log.info("撤回消息内容:{}", JSON.toJSONString(data));
boolean r = imMessageService.withdrawMsg(msgRecall); Boolean r = imMessageService.withdrawMsg(data);
Map<String, Boolean> result = new HashMap<>(); Map<String, Boolean> result = new HashMap<>();
result.put("result", r); result.put("result", r);
return WsResponse.ok(result); 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