升级为protobuf3

This commit is contained in:
boyce
2020-12-10 15:50:42 +08:00
parent 96b983a7cf
commit e2a156473b
3 changed files with 122 additions and 212 deletions

View File

@@ -1,16 +1,16 @@
syntax = "proto2";
syntax = "proto3";
package rpc;
option go_package =".;rpc";
message PBRpcRequestData{
optional uint64 Seq = 1;
optional string ServiceMethod = 2;
optional bool NoReply = 3;
optional bytes InParam = 4;
uint64 Seq = 1;
string ServiceMethod = 2;
bool NoReply = 3;
bytes InParam = 4;
}
message PBRpcResponseData{
optional uint64 Seq = 1;
optional string Error = 2;
optional bytes Reply = 3;
uint64 Seq = 1;
string Error = 2;
bytes Reply = 3;
}