cache rpc

This commit is contained in:
wangchuxiao
2022-04-25 20:05:21 +08:00
parent 51146a4ed5
commit a03f89fb68
10 changed files with 340 additions and 30 deletions
+44
View File
@@ -0,0 +1,44 @@
syntax = "proto3";
import "Open_IM/pkg/proto/sdk_ws/ws.proto";
option go_package = "./cache;cache";
package cache;
message CommonResp{
int32 errCode = 1;
string errMsg = 2;
}
message GetUserInfoReq{
repeated string userIDList = 1;
string operationID = 3;
}
message GetUserInfoResp{
CommonResp commonResp = 1;
repeated server_api_params.UserInfo UserInfoList = 2;
}
message UpdateUserInfoReq{
repeated server_api_params.UserInfo UserInfoList = 1;
string operationID = 2;
}
message UpdateUserInfoResp{
CommonResp commonResp = 1;
}
message UpdateAllUserToCacheReq{
string operationID = 1;
}
message UpdateAllUserToCacheResp{
CommonResp commonResp = 1;
}
service cache{
rpc GetUserInfo(GetUserInfoReq) returns(GetUserInfoResp);
rpc UpdateUserInfo(UpdateUserInfoReq) returns(UpdateUserInfoResp);
rpc UpdateAllUserToCache(UpdateAllUserToCacheReq) returns(UpdateAllUserToCacheResp);
}