Files
2026-05-09 17:06:30 +08:00

23 lines
422 B
Protocol Buffer

syntax = "proto3";
// 指定生成的 C# 命名空间
option csharp_namespace = "IM.Protocols.Grpc.Contact";
package contact;
// 定义服务
service ContactInternal {
//检查好友关系
rpc CheckFriendship (CheckFriendshipRequest) returns (CheckFriendshipResponse);
}
// 请求参数
message CheckFriendshipRequest {
string owner_id = 1;
string target_id = 2;
}
// 响应参数
message CheckFriendshipResponse {
bool checked = 1;
}