|
@ -59,6 +59,25 @@ public class ImUtill {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 发送消息
|
|
|
* @param senderId 发送者的code
|
|
|
* @param receiverId 接受者code
|
|
|
* @param contentType 消息类型
|
|
|
* @param content 消息内容
|
|
|
* @return
|
|
|
*/
|
|
|
public String sendMessage(String senderId,String receiverId,String contentType,String content){
|
|
|
String imAddr = im_host + "api/v2/message/send";
|
|
|
JSONObject params = new JSONObject();
|
|
|
params.put("sender_id", senderId);
|
|
|
params.put("sender_name", receiverId);
|
|
|
params.put("content_type", contentType);
|
|
|
params.put("content", content);
|
|
|
String response = HttpClientUtil.postBody(imAddr, params);
|
|
|
return response;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 获取医生统计数据
|
|
|
* status reply 为空值是是该医生总咨询量
|