mirror of
https://github.com/openimsdk/open-im-server.git
synced 2026-01-10 06:06:57 +08:00
25 lines
484 B
Protocol Buffer
25 lines
484 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package OpenIMServer.protobuf;
|
|
|
|
option go_package = "github.com/OpenIMSDK/Open-IM-Server/pkg/proto/key";
|
|
|
|
message GetKeyReq {
|
|
string conversationId = 1;
|
|
uint32 conversationType = 2;
|
|
string userId = 3;
|
|
}
|
|
message KeyResp {
|
|
string key = 1;
|
|
}
|
|
message GetAllKeyReq {
|
|
string userId = 1;
|
|
}
|
|
message GetAllKeyResp {
|
|
map<string,string> keys = 1;
|
|
}
|
|
|
|
service key {
|
|
rpc GetKey(GetKeyReq) returns(KeyResp);
|
|
rpc GetAllKey(GetAllKeyReq) returns(GetAllKeyResp);
|
|
} |