1,添加获取用户机器人列表ID的接口。
2,机器人回调消息中添加回调的机器人ID。 3,mesh服务添加加群申请相关接口
This commit is contained in:
@@ -141,6 +141,17 @@ public class MeshAdmin {
|
||||
return AdminHttpUtils.httpJsonPost(path, addGroupMember, Void.class);
|
||||
}
|
||||
|
||||
public static IMResult<Void> addJoinGroupRequest(String operator, String groupId, List<String> userIds, String reason, String extra) throws Exception {
|
||||
String path = APIPath.Group_Join_Request_Add;
|
||||
PojoAddJoinGroupRequest addGroupMember = new PojoAddJoinGroupRequest();
|
||||
addGroupMember.operator = operator;
|
||||
addGroupMember.group_id = groupId;
|
||||
addGroupMember.userIds = userIds;
|
||||
addGroupMember.reason = reason;
|
||||
addGroupMember.extra = extra;
|
||||
return AdminHttpUtils.httpJsonPost(path, addGroupMember, Void.class);
|
||||
}
|
||||
|
||||
public static IMResult<PojoGroupInfoList> batchGroupInfos(List<String> groupIds) throws Exception {
|
||||
return GroupAdmin.batchGroupInfos(groupIds);
|
||||
}
|
||||
|
||||
@@ -81,6 +81,13 @@ public class UserAdmin {
|
||||
return AdminHttpUtils.httpJsonPost(path, getRobotInfo, OutputRobot.class);
|
||||
}
|
||||
|
||||
public static IMResult<OutputStringList> getUserRobots(String userId) throws Exception {
|
||||
String path = APIPath.User_Get_User_Robots;
|
||||
InputUserId getRobotInfo = new InputUserId();
|
||||
getRobotInfo.setUserId(userId);
|
||||
return AdminHttpUtils.httpJsonPost(path, getRobotInfo, OutputStringList.class);
|
||||
}
|
||||
|
||||
public static IMResult<OutputGetIMTokenData> getUserToken(String userId, String clientId, int platform) throws Exception {
|
||||
String path = APIPath.User_Get_Token;
|
||||
InputGetToken getToken = new InputGetToken(userId, clientId, platform);
|
||||
|
||||
Reference in New Issue
Block a user