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/cache/cache.proto

89 lines
1.9 KiB

3 years ago
syntax = "proto3";
2 years ago
option go_package = "Open_IM/pkg/proto/cache;cache";
3 years ago
package cache;
message CommonResp{
int32 errCode = 1;
string errMsg = 2;
}
message GetFriendIDListFromCacheReq {
3 years ago
string userID = 1;
string operationID = 2;
3 years ago
}
message GetFriendIDListFromCacheResp {
repeated string userIDList = 1;
3 years ago
CommonResp commonResp = 2;
}
2 years ago
message DelFriendIDListFromCacheReq {
string userID = 1;
string operationID = 2;
}
2 years ago
message DelFriendIDListFromCacheResp {
CommonResp commonResp = 1;
3 years ago
}
message GetBlackIDListFromCacheReq {
3 years ago
string userID = 1;
string operationID = 2;
}
3 years ago
message GetBlackIDListFromCacheResp {
repeated string userIDList = 1;
CommonResp commonResp = 2;
}
2 years ago
message DelBlackIDListFromCacheReq {
string userID = 1;
2 years ago
string operationID = 2;
3 years ago
}
2 years ago
message DelBlackIDListFromCacheResp {
3 years ago
CommonResp commonResp = 1;
}
3 years ago
3 years ago
message GetGroupMemberIDListFromCacheReq {
string operationID = 1;
string groupID = 2;
}
message GetGroupMemberIDListFromCacheResp {
CommonResp commonResp = 1;
repeated string userIDList = 2;
}
2 years ago
message DelGroupMemberIDListFromCacheReq {
string groupID = 1;
string operationID = 2;
3 years ago
}
2 years ago
message DelGroupMemberIDListFromCacheResp {
3 years ago
CommonResp commonResp = 1;
}
3 years ago
service cache{
// friendInfo
rpc GetFriendIDListFromCache(GetFriendIDListFromCacheReq) returns(GetFriendIDListFromCacheResp);
2 years ago
// for dtm
rpc DelFriendIDListFromCache(DelFriendIDListFromCacheReq) returns(DelFriendIDListFromCacheResp);
// blackList
rpc GetBlackIDListFromCache(GetBlackIDListFromCacheReq) returns(GetBlackIDListFromCacheResp);
2 years ago
// for dtm
rpc DelBlackIDListFromCache(DelBlackIDListFromCacheReq) returns (DelBlackIDListFromCacheResp);
3 years ago
// group
rpc GetGroupMemberIDListFromCache(GetGroupMemberIDListFromCacheReq) returns(GetGroupMemberIDListFromCacheResp);
2 years ago
// for dtm
rpc DelGroupMemberIDListFromCache(DelGroupMemberIDListFromCacheReq) returns(DelGroupMemberIDListFromCacheResp);
3 years ago
}
3 years ago