This commit is contained in:
张良(004796)
2024-01-25 19:04:03 +08:00
parent 7874e38d17
commit 13fa059d02
14 changed files with 171 additions and 89 deletions

View File

@@ -1,19 +0,0 @@
package com.ruoyi.cai.trd;
import lombok.Data;
@Data
public class ImDataRes {
private Integer type;
private ImData data;
@Data
public static class ImData {
// 通话状态1 取消 2 拒绝 3 超时 4 已通话
private Integer callType;
private Integer status;
private Long fromUid;
private Long toUid;
private Long callTime;
}
}

View File

@@ -1,25 +0,0 @@
package com.ruoyi.cai.trd;
public class ImMsgGen {
/**
* 通话通知
* @param status
* @param from
* @param to
* @param callTime
*/
public static ImDataRes callNotice(int status,Long from,Long to,long callTime){
ImDataRes imDataRes = new ImDataRes();
imDataRes.setType(15);
ImDataRes.ImData imData = new ImDataRes.ImData();
imData.setCallType(1); // 通话状态1 取消 2 拒绝 3 超时 4 已通话
imData.setStatus(status);
imData.setFromUid(from);
imData.setToUid(to);
imData.setCallTime(callTime);
imDataRes.setData(imData);
return imDataRes;
}
}