扩统rpc序列化与反序列化支持

This commit is contained in:
duanhf2012
2020-04-21 13:23:18 +08:00
parent a906002f29
commit f74f3a812e
12 changed files with 474 additions and 77 deletions

19
rpc/rpc.proto Normal file
View File

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