123
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user