添加项目文件。
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
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;
|
||||
}
|
||||
Reference in New Issue
Block a user