You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Open-IM-Server/pkg/proto/admin_cms/admin_cms.proto

195 lines
4.6 KiB

3 years ago
syntax = "proto3";
option go_package = "./admin_cms;admin_cms";
2 years ago
import "Open_IM/pkg/proto/sdk_ws/ws.proto";
3 years ago
package admin_cms;
2 years ago
message CommonResp {
int32 errCode = 1;
string errMsg = 2;
}
3 years ago
message AdminLoginReq {
string OperationID = 1;
string AdminID = 2;
string Secret = 3;
}
2 years ago
3 years ago
message AdminLoginResp {
string token = 1;
2 years ago
CommonResp commonResp = 2;
3 years ago
}
2 years ago
message AddUserRegisterAddFriendIDListReq {
string operationID = 1;
repeated string userIDList = 2;
}
message AddUserRegisterAddFriendIDListResp {
2 years ago
CommonResp commonResp = 1;
2 years ago
}
message ReduceUserRegisterAddFriendIDListReq {
string operationID = 1;
int32 operation = 2;
repeated string userIDList = 3;
}
message ReduceUserRegisterAddFriendIDListResp {
2 years ago
CommonResp commonResp = 1;
2 years ago
}
message GetUserRegisterAddFriendIDListReq {
string operationID = 1;
2 years ago
server_api_params.RequestPagination pagination = 2;
2 years ago
}
message GetUserRegisterAddFriendIDListResp {
2 years ago
repeated server_api_params.UserInfo userInfoList = 1;
server_api_params.ResponsePagination pagination = 2;
CommonResp commonResp = 3;
}
message GetChatLogsReq {
string Content = 1;
string SendID = 2;
string RecvID = 3;
string SendTime = 4;
int32 SessionType = 5;
int32 ContentType = 6;
server_api_params.RequestPagination Pagination = 7;
string OperationID = 8;
}
message ChatLog {
string ServerMsgID = 1;
string stringClientMsgID = 2;
string SendID = 3;
string RecvID = 4;
int32 SenderPlatformID = 5;
string SenderNickname = 6;
string SenderFaceURL = 7;
2 years ago
string GroupName = 8;
int32 SessionType = 9;
int32 MsgFrom = 10;
int32 ContentType = 11;
string Content = 12;
int32 Status = 13;
int64 SendTime = 14;
int64 CreateTime = 15;
string Ex = 16;
2 years ago
}
message GetChatLogsResp {
repeated ChatLog ChatLogs = 1;
2 years ago
server_api_params.ResponsePagination Pagination = 2;
2 years ago
int32 ChatLogsNum = 3;
CommonResp CommonResp = 4;
}
message StatisticsReq {
string from = 1;
string to = 2;
}
message GetActiveUserReq{
StatisticsReq StatisticsReq = 1;
string OperationID = 2;
}
message UserResp{
string NickName = 1;
string UserId = 2;
int32 MessageNum = 3;
}
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;
int32 MessageNum = 3;
CommonResp CommonResp = 4;
}
message GetActiveGroupResp {
repeated GroupResp Groups = 1;
CommonResp CommonResp = 2;
}
message DateNumList {
string Date = 1;
int32 Num = 2;
}
message GetMessageStatisticsReq {
StatisticsReq StatisticsReq = 1;
string OperationID = 2;
}
message GetMessageStatisticsResp {
int32 PrivateMessageNum = 1;
int32 GroupMessageNum = 2;
repeated DateNumList PrivateMessageNumList = 3;
repeated DateNumList GroupMessageNumList = 4;
CommonResp CommonResp = 5;
}
message GetGroupStatisticsReq {
StatisticsReq StatisticsReq = 1;
string OperationID = 2;
}
message GetGroupStatisticsResp {
int32 IncreaseGroupNum = 1;
int32 TotalGroupNum = 2;
repeated DateNumList IncreaseGroupNumList = 3;
repeated DateNumList TotalGroupNumList = 4;
CommonResp CommonResp = 5;
}
message GetUserStatisticsReq {
StatisticsReq StatisticsReq = 1;
string OperationID = 2;
}
message GetUserStatisticsResp {
int32 IncreaseUserNum = 1;
int32 ActiveUserNum = 2;
int32 TotalUserNum = 3;
repeated DateNumList IncreaseUserNumList = 4;
repeated DateNumList ActiveUserNumList = 5;
repeated DateNumList TotalUserNumList = 6;
CommonResp CommonResp = 7;
2 years ago
}
3 years ago
service adminCMS {
rpc AdminLogin(AdminLoginReq) returns(AdminLoginResp);
2 years ago
rpc AddUserRegisterAddFriendIDList(AddUserRegisterAddFriendIDListReq) returns(AddUserRegisterAddFriendIDListResp);
rpc ReduceUserRegisterAddFriendIDList(ReduceUserRegisterAddFriendIDListReq) returns(ReduceUserRegisterAddFriendIDListResp);
rpc GetUserRegisterAddFriendIDList(GetUserRegisterAddFriendIDListReq) returns(GetUserRegisterAddFriendIDListResp);
2 years ago
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);
}