添加按照用户会话删除消息接口
This commit is contained in:
@@ -60,6 +60,7 @@ public interface APIPath {
|
|||||||
String Msg_ConvRead = "/admin/message/conv_read";
|
String Msg_ConvRead = "/admin/message/conv_read";
|
||||||
String Msg_Delivery = "/admin/message/delivery";
|
String Msg_Delivery = "/admin/message/delivery";
|
||||||
String Conversation_Delete = "/admin/conversation/delete";
|
String Conversation_Delete = "/admin/conversation/delete";
|
||||||
|
String Msg_Clear_By_User = "/admin/message/clear_by_user";
|
||||||
|
|
||||||
String Create_Group = "/admin/group/create";
|
String Create_Group = "/admin/group/create";
|
||||||
String Group_Dismiss = "/admin/group/del";
|
String Group_Dismiss = "/admin/group/del";
|
||||||
|
|||||||
Executable → Regular
-16
@@ -1,21 +1,5 @@
|
|||||||
/*
|
|
||||||
* This file is part of the Wildfire Chat package.
|
|
||||||
* (c) Heavyrain2012 <[email protected]>
|
|
||||||
*
|
|
||||||
* For the full copyright and license information, please view the LICENSE
|
|
||||||
* file that was distributed with this source code.
|
|
||||||
*/
|
|
||||||
|
|
||||||
package cn.wildfirechat.pojos;
|
package cn.wildfirechat.pojos;
|
||||||
|
|
||||||
|
|
||||||
import cn.wildfirechat.proto.WFCMessage;
|
|
||||||
import io.netty.util.internal.StringUtil;
|
|
||||||
|
|
||||||
import java.util.ArrayList;
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
public class OutputBooleanValue {
|
public class OutputBooleanValue {
|
||||||
public boolean value;
|
public boolean value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -40,6 +40,12 @@ public class MessageAdmin {
|
|||||||
return AdminHttpUtils.httpJsonPost(path, deleteMessageData, Void.class);
|
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 {
|
public static IMResult<Void> updateMessageContent(String operator, long messageUid, MessagePayload payload, boolean distribute) throws Exception {
|
||||||
String path = APIPath.Msg_Update;
|
String path = APIPath.Msg_Update;
|
||||||
UpdateMessageContentData updateMessageContentData = new UpdateMessageContentData();
|
UpdateMessageContentData updateMessageContentData = new UpdateMessageContentData();
|
||||||
|
|||||||
Reference in New Issue
Block a user