From e005d60971895623e4b052e18a72a3a993646445 Mon Sep 17 00:00:00 2001 From: Nex Date: Fri, 7 Sep 2018 10:28:07 +0800 Subject: [PATCH] Update proto files and scripts --- ac_chain.proto | 1 + common.proto | 1 + gen.bat | 2 +- gen.sh | 2 +- tx_ledger.proto | 1 + 5 files changed, 5 insertions(+), 2 deletions(-) diff --git a/ac_chain.proto b/ac_chain.proto index 343e97e..8719316 100644 --- a/ac_chain.proto +++ b/ac_chain.proto @@ -1,4 +1,5 @@ syntax = "proto3"; + package api; import "common.proto"; diff --git a/common.proto b/common.proto index cda818e..c2424ef 100644 --- a/common.proto +++ b/common.proto @@ -1,4 +1,5 @@ syntax = "proto3"; + package api; enum MessageType { diff --git a/gen.bat b/gen.bat index de91e08..5155e5a 100644 --- a/gen.bat +++ b/gen.bat @@ -1,2 +1,2 @@ mkdir go -protoc -I=. --go_out=go tx_ledger.proto ac_chain.proto +protoc -I=. --go_out=plugins=grpc:go common.proto tx_ledger.proto ac_chain.proto diff --git a/gen.sh b/gen.sh index de91e08..5155e5a 100644 --- a/gen.sh +++ b/gen.sh @@ -1,2 +1,2 @@ mkdir go -protoc -I=. --go_out=go tx_ledger.proto ac_chain.proto +protoc -I=. --go_out=plugins=grpc:go common.proto tx_ledger.proto ac_chain.proto diff --git a/tx_ledger.proto b/tx_ledger.proto index ee646ab..ad9fb35 100644 --- a/tx_ledger.proto +++ b/tx_ledger.proto @@ -1,4 +1,5 @@ syntax = "proto3"; + package api; import "common.proto";