syntax = "proto3"; option go_package = "./admin_cms;admin_cms"; import "Open_IM/pkg/proto/sdk_ws/ws.proto"; package admin_cms; message CommonResp { int32 errCode = 1; string errMsg = 2; } message AdminLoginReq { string operationID = 1; string adminID = 2; string secret = 3; } message AdminLoginResp { string token = 1; string userName = 2; string faceURL = 3; CommonResp commonResp = 4; } 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; 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 clientMsgID = 2; string sendID = 3; string recvID = 4; string groupID = 5; string recvNickname = 6; int32 senderPlatformID = 7; string senderNickname = 8; string senderFaceURL = 9; string groupName = 10; int32 sessionType = 11; int32 msgFrom = 12; int32 contentType = 13; string content = 14; int32 status = 15; int64 sendTime = 16; int64 createTime = 17; string ex = 18; } message GetChatLogsResp { repeated ChatLog chatLogs = 1; server_api_params.ResponsePagination pagination = 2; 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; } 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; string userID = 2; string friendUserID = 3; string friendUserName = 4; 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; } 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); }