添加按照用户会话删除消息接口

This commit is contained in:
heavyrian2012
2022-09-06 12:54:24 +08:00
parent 39371797d2
commit cd6c7d2da9
3 changed files with 7 additions and 16 deletions
@@ -40,6 +40,12 @@ public class MessageAdmin {
return AdminHttpUtils.httpJsonPost(path, deleteMessageData, Void.class);
}
public static IMResult<Void> clearUserMessages(String userId, Conversation conversation, long fromTime, long toTime) throws Exception {
String path = APIPath.Msg_Clear_By_User;
InputClearUserMessages clearUserMessages = new InputClearUserMessages(userId, conversation, fromTime, toTime);
return AdminHttpUtils.httpJsonPost(path, clearUserMessages, Void.class);
}
public static IMResult<Void> updateMessageContent(String operator, long messageUid, MessagePayload payload, boolean distribute) throws Exception {
String path = APIPath.Msg_Update;
UpdateMessageContentData updateMessageContentData = new UpdateMessageContentData();