This commit is contained in:
dute7liang
2024-01-25 22:26:25 +08:00
parent b0ff90a0a0
commit 7dbc4022b7
8 changed files with 55 additions and 13 deletions

View File

@@ -27,6 +27,13 @@ public class Yunxin {
@Resource
private ImMessageClient messageClient;
/**
*
* @param toUid 接收者ID
* @param fromUid 发送者ID
* @param data 数据
* @return
*/
public YxDataR<SendMsgResp> sendTo(Long toUid,Long fromUid,Object data){
SendMsgReq req = new SendMsgReq();
req.setFrom(fromUid == null ? yunxinProperties.getDefaultFromUid() : fromUid+"");