mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-06-03 06:01:30 +08:00
Merge remote-tracking branch 'origin/errcode' into errcode
This commit is contained in:
commit
e241c65a9c
@ -14,48 +14,6 @@ message AdminLoginResp {
|
||||
string faceURL = 3;
|
||||
}
|
||||
|
||||
message GetUserTokenReq {
|
||||
string operationID = 1;
|
||||
string userID = 2;
|
||||
int32 platformID = 3;
|
||||
}
|
||||
|
||||
message GetUserTokenResp {
|
||||
CommonResp commonResp = 1;
|
||||
string token = 2;
|
||||
int64 expTime = 3;
|
||||
}
|
||||
|
||||
message AddUserRegisterAddFriendIDListReq {
|
||||
string operationID = 1;
|
||||
repeated string userIDList = 2;
|
||||
}
|
||||
|
||||
message AddUserRegisterAddFriendIDListResp {
|
||||
CommonResp commonResp = 1;
|
||||
}
|
||||
|
||||
message ReduceUserRegisterAddFriendIDListReq {
|
||||
string operationID = 1;
|
||||
int32 operation = 2;
|
||||
repeated string userIDList = 3;
|
||||
}
|
||||
|
||||
message ReduceUserRegisterAddFriendIDListResp {
|
||||
CommonResp commonResp = 1;
|
||||
}
|
||||
|
||||
message GetUserRegisterAddFriendIDListReq {
|
||||
string operationID = 1;
|
||||
server_api_params.RequestPagination pagination = 2;
|
||||
}
|
||||
|
||||
message GetUserRegisterAddFriendIDListResp {
|
||||
repeated server_api_params.UserInfo userInfoList = 1;
|
||||
server_api_params.ResponsePagination pagination = 2;
|
||||
CommonResp commonResp = 3;
|
||||
}
|
||||
|
||||
message GetChatLogsReq {
|
||||
string content = 1;
|
||||
string sendID = 2;
|
||||
@ -64,8 +22,6 @@ message GetChatLogsReq {
|
||||
int32 sessionType = 5;
|
||||
int32 contentType = 6;
|
||||
server_api_params.RequestPagination pagination = 7;
|
||||
string operationID = 8;
|
||||
string opUserID = 9;
|
||||
}
|
||||
|
||||
message ChatLog {
|
||||
@ -91,9 +47,7 @@ message ChatLog {
|
||||
|
||||
message GetChatLogsResp {
|
||||
repeated ChatLog chatLogs = 1;
|
||||
server_api_params.ResponsePagination pagination = 2;
|
||||
int32 chatLogsNum = 3;
|
||||
CommonResp commonResp = 4;
|
||||
int32 chatLogsNum = 2;
|
||||
}
|
||||
|
||||
|
||||
@ -104,7 +58,6 @@ message StatisticsReq {
|
||||
|
||||
message GetActiveUserReq{
|
||||
StatisticsReq statisticsReq = 1;
|
||||
string operationID = 2;
|
||||
}
|
||||
|
||||
message UserResp{
|
||||
@ -115,24 +68,20 @@ message UserResp{
|
||||
|
||||
message GetActiveUserResp {
|
||||
repeated UserResp Users = 1;
|
||||
CommonResp commonResp = 2;
|
||||
}
|
||||
|
||||
message GetActiveGroupReq{
|
||||
StatisticsReq statisticsReq = 1;
|
||||
string operationID = 2;
|
||||
}
|
||||
|
||||
message GroupResp {
|
||||
string GroupName = 1;
|
||||
string GroupId = 2;
|
||||
string GroupID = 2;
|
||||
int32 MessageNum = 3;
|
||||
CommonResp commonResp = 4;
|
||||
}
|
||||
|
||||
message GetActiveGroupResp {
|
||||
repeated GroupResp Groups = 1;
|
||||
CommonResp commonResp = 2;
|
||||
}
|
||||
|
||||
message DateNumList {
|
||||
@ -181,124 +130,8 @@ message GetUserStatisticsResp {
|
||||
repeated DateNumList IncreaseUserNumList = 4;
|
||||
repeated DateNumList ActiveUserNumList = 5;
|
||||
repeated DateNumList TotalUserNumList = 6;
|
||||
CommonResp commonResp = 7;
|
||||
}
|
||||
|
||||
message GenerateInvitationCodeReq {
|
||||
string operationID = 1;
|
||||
int32 codeLen = 2;
|
||||
int32 codeNum = 3;
|
||||
}
|
||||
|
||||
message GenerateInvitationCodeResp {
|
||||
CommonResp commonResp = 1;
|
||||
}
|
||||
|
||||
message GetInvitationCodesReq {
|
||||
string operationID = 1;
|
||||
string code = 2;
|
||||
int32 status = 3;
|
||||
server_api_params.RequestPagination pagination = 4;
|
||||
}
|
||||
|
||||
message invitationCode {
|
||||
string invitationCode = 1;
|
||||
int32 createTime = 2;
|
||||
int32 lastTime = 3;
|
||||
string userID = 4;
|
||||
int32 status = 5;
|
||||
}
|
||||
|
||||
message GetInvitationCodesResp {
|
||||
repeated invitationCode invitationCodes = 1;
|
||||
server_api_params.ResponsePagination Pagination = 2;
|
||||
CommonResp commonResp = 3;
|
||||
}
|
||||
|
||||
message QueryIPRegisterReq {
|
||||
string operationID = 1;
|
||||
string IP = 2;
|
||||
}
|
||||
|
||||
message QueryIPRegisterResp {
|
||||
string IP = 1;
|
||||
int32 RegisterNum = 2;
|
||||
int32 Status = 3;
|
||||
repeated string userIDList = 4;
|
||||
CommonResp commonResp = 5;
|
||||
}
|
||||
|
||||
message AddIPLimitReq {
|
||||
string operationID = 1;
|
||||
string IP = 2;
|
||||
int32 limitTime = 3;
|
||||
}
|
||||
|
||||
message AddIPLimitResp {
|
||||
CommonResp commonResp = 1;
|
||||
}
|
||||
|
||||
message RemoveIPLimitReq {
|
||||
string operationID = 1;
|
||||
string IP = 2;
|
||||
}
|
||||
|
||||
message RemoveIPLimitResp {
|
||||
CommonResp commonResp = 1;
|
||||
}
|
||||
|
||||
message QueryUserIDIPLimitLoginReq {
|
||||
string operationID = 1;
|
||||
string userID = 2;
|
||||
}
|
||||
|
||||
message UserIPLimit {
|
||||
string userID = 1;
|
||||
string IP = 2;
|
||||
int32 createTime = 3;
|
||||
}
|
||||
|
||||
message QueryUserIDIPLimitLoginResp {
|
||||
repeated UserIPLimit UserIPLimits = 1;
|
||||
CommonResp commonResp = 2;
|
||||
}
|
||||
|
||||
message AddUserIPLimitLoginReq {
|
||||
string userID = 1;
|
||||
string operationID = 2;
|
||||
string IP = 3;
|
||||
}
|
||||
|
||||
message AddUserIPLimitLoginResp {
|
||||
CommonResp commonResp = 1;
|
||||
}
|
||||
|
||||
message RemoveUserIPLimitReq {
|
||||
string userID = 1;
|
||||
string operationID = 2;
|
||||
string IP = 3;
|
||||
}
|
||||
|
||||
message RemoveUserIPLimitResp {
|
||||
CommonResp commonResp = 1;
|
||||
}
|
||||
|
||||
message GetClientInitConfigReq {
|
||||
string operationID = 1;
|
||||
}
|
||||
|
||||
message GetClientInitConfigResp {
|
||||
CommonResp commonResp = 1;
|
||||
}
|
||||
|
||||
message SetClientInitConfigReq {
|
||||
string operationID = 1;
|
||||
string discoverPageURL = 2;
|
||||
}
|
||||
|
||||
message SetClientInitConfigResp {
|
||||
CommonResp commonResp = 1;
|
||||
}
|
||||
|
||||
message GetUserFriendsReq {
|
||||
string operationID = 1;
|
||||
@ -308,59 +141,39 @@ message GetUserFriendsReq {
|
||||
server_api_params.RequestPagination pagination = 5;
|
||||
}
|
||||
|
||||
|
||||
message GetUserFriendsResp {
|
||||
server_api_params.ResponsePagination pagination = 1;
|
||||
repeated server_api_params.FriendInfo friendInfoList = 2;
|
||||
int32 friendNums = 3;
|
||||
CommonResp commonResp = 4;
|
||||
}
|
||||
|
||||
message GetUserIDByEmailAndPhoneNumberReq{
|
||||
string operationID = 1;
|
||||
string email = 2;
|
||||
string phoneNumber = 3;
|
||||
}
|
||||
|
||||
message GetUserIDByEmailAndPhoneNumberResp{
|
||||
repeated string userIDList = 1;
|
||||
CommonResp commonResp = 2;
|
||||
}
|
||||
|
||||
message GetUserTokenReq {
|
||||
string userID = 1;
|
||||
int32 platformID = 2;
|
||||
}
|
||||
|
||||
message GetUserTokenResp {
|
||||
string token = 1;
|
||||
int64 expTime = 2;
|
||||
}
|
||||
|
||||
service adminCMS {
|
||||
rpc AdminLogin(AdminLoginReq) returns(AdminLoginResp);
|
||||
|
||||
rpc AddUserRegisterAddFriendIDList(AddUserRegisterAddFriendIDListReq) returns(AddUserRegisterAddFriendIDListResp);
|
||||
rpc ReduceUserRegisterAddFriendIDList(ReduceUserRegisterAddFriendIDListReq) returns(ReduceUserRegisterAddFriendIDListResp);
|
||||
rpc GetUserRegisterAddFriendIDList(GetUserRegisterAddFriendIDListReq) returns(GetUserRegisterAddFriendIDListResp);
|
||||
|
||||
|
||||
rpc GetChatLogs(GetChatLogsReq) returns(GetChatLogsResp);
|
||||
|
||||
rpc GetActiveUser(GetActiveUserReq) returns(GetActiveUserResp);
|
||||
rpc GetActiveGroup(GetActiveGroupReq) returns(GetActiveGroupResp);
|
||||
rpc GetMessageStatistics(GetMessageStatisticsReq) returns(GetMessageStatisticsResp);
|
||||
rpc GetGroupStatistics(GetGroupStatisticsReq) returns(GetGroupStatisticsResp);
|
||||
rpc GetUserStatistics(GetUserStatisticsReq) returns(GetUserStatisticsResp);
|
||||
|
||||
rpc GenerateInvitationCode(GenerateInvitationCodeReq) returns(GenerateInvitationCodeResp);
|
||||
rpc GetInvitationCodes(GetInvitationCodesReq) returns(GetInvitationCodesResp);
|
||||
|
||||
rpc QueryIPRegister(QueryIPRegisterReq) returns(QueryIPRegisterResp);
|
||||
rpc AddIPLimit(AddIPLimitReq) returns(AddIPLimitResp);
|
||||
rpc RemoveIPLimit(RemoveIPLimitReq) returns(RemoveIPLimitResp);
|
||||
rpc QueryUserIDIPLimitLogin(QueryUserIDIPLimitLoginReq) returns(QueryUserIDIPLimitLoginResp);
|
||||
rpc AddUserIPLimitLogin(AddUserIPLimitLoginReq) returns(AddUserIPLimitLoginResp);
|
||||
rpc RemoveUserIPLimit(RemoveUserIPLimitReq) returns(RemoveUserIPLimitResp);
|
||||
|
||||
rpc GetClientInitConfig(GetClientInitConfigReq) returns(GetClientInitConfigResp);
|
||||
rpc SetClientInitConfig(SetClientInitConfigReq) returns(SetClientInitConfigResp);
|
||||
|
||||
rpc GetUserFriends(GetUserFriendsReq) returns(GetUserFriendsResp);
|
||||
|
||||
rpc GetUserIDByEmailAndPhoneNumber(GetUserIDByEmailAndPhoneNumberReq) returns(GetUserIDByEmailAndPhoneNumberResp);
|
||||
|
||||
rpc GetUserToken(GetUserTokenReq) returns(GetUserTokenResp);
|
||||
}
|
||||
|
@ -5,11 +5,6 @@ package server_api_params;
|
||||
|
||||
|
||||
////////////////////////////////base///////////////////////////////
|
||||
message CommonResp{
|
||||
int32 errCode = 1;
|
||||
string errMsg = 2;
|
||||
string detailErrMsg =3;
|
||||
}
|
||||
|
||||
message GroupInfo{
|
||||
string groupID = 1;
|
||||
@ -133,69 +128,6 @@ message FriendRequest{
|
||||
string ex = 15;
|
||||
}
|
||||
|
||||
///////////////////////////////////organization/////////////////////////////////////
|
||||
|
||||
message Department {
|
||||
string departmentID = 1;
|
||||
string faceURL = 2;
|
||||
string name = 3;
|
||||
string parentID = 4;
|
||||
int32 order = 5;
|
||||
int32 departmentType = 6;
|
||||
uint32 createTime = 7;
|
||||
uint32 subDepartmentNum = 8;
|
||||
uint32 memberNum = 9;
|
||||
string ex = 10;
|
||||
}
|
||||
|
||||
|
||||
|
||||
message OrganizationUser {
|
||||
string userID = 1;
|
||||
string nickname = 2;
|
||||
string englishName = 3;
|
||||
string faceURL = 4;
|
||||
int32 gender = 5;
|
||||
string mobile = 6;
|
||||
string telephone = 7;
|
||||
uint32 birth = 8;
|
||||
string email = 9;
|
||||
uint32 createTime = 10;
|
||||
string ex = 11;
|
||||
string birthStr = 12;
|
||||
}
|
||||
|
||||
message DepartmentMember {
|
||||
string userID = 1;
|
||||
string departmentID = 2;
|
||||
int32 order = 3;
|
||||
string position = 4;
|
||||
int32 leader = 5;
|
||||
int32 status = 6;
|
||||
string ex = 7;
|
||||
}
|
||||
|
||||
|
||||
message UserDepartmentMember {
|
||||
OrganizationUser organizationUser = 1;
|
||||
DepartmentMember departmentMember = 2;
|
||||
}
|
||||
|
||||
|
||||
message UserInDepartment {
|
||||
OrganizationUser organizationUser = 1;
|
||||
repeated DepartmentMember departmentMemberList = 2;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
///////////////////////////////////organization end//////////////////////////////////
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
///////////////////////////////////base end/////////////////////////////////////
|
||||
|
Loading…
x
Reference in New Issue
Block a user