替换gogoprotobuf为google标准库

This commit is contained in:
duanhf2012
2023-08-21 15:44:55 +08:00
parent fa6039e2cb
commit 582a0faa6f
13 changed files with 2447 additions and 8610 deletions

17
rpc/protorpc.proto Normal file
View File

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