update 【gRPC API】 proto files

This commit is contained in:
社会易姐QwQ
2022-01-31 00:33:38 +08:00
parent 83cfcc80d6
commit 57c5621b5d
14 changed files with 1114 additions and 565 deletions

View File

@@ -14,13 +14,33 @@ service Test {
rpc WatchTestEvent(google.protobuf.Empty) returns (stream TestResp);
}
//
service Test2 {
//
rpc Test(AddParams) returns (google.protobuf.Empty);
}
//
message AddParams {
//
int32 a = 1;
//
int32 b = 2;
}
//
message AddResult {
//
int32 r = 1;
}
message TestResp {
// 任务id
int64 taskid = 1 [json_name="taskid"];
int64 taskid = 1;
// 时间戳
int64 timestamp = 2 [json_name="timestamp"];
int64 timestamp = 2;
// 消息
string message = 3 [json_name="message"];
string message = 3;
// 扩展
google.protobuf.Any extra = 4;
}