From 3dc5c90025b6d75eed78137ae6dd8b5bb96cda85 Mon Sep 17 00:00:00 2001 From: MYLS Date: Thu, 26 Sep 2019 18:06:06 +0800 Subject: [PATCH] update package name --- {bdchain => bdledger}/api/ac_chain.proto | 8 ++++---- {bdchain => bdledger}/api/common.proto | 6 +++--- {bdchain => bdledger}/api/error_details.proto | 6 +++--- {bdchain => bdledger}/api/tx_ledger.proto | 8 ++++---- gen-go.bat | 8 ++++---- gen-go.sh | 8 ++++---- gen-web.bat | 8 ++++---- gen-web.sh | 8 ++++---- test.md | 4 ++-- 9 files changed, 32 insertions(+), 32 deletions(-) rename {bdchain => bdledger}/api/ac_chain.proto (93%) rename {bdchain => bdledger}/api/common.proto (74%) rename {bdchain => bdledger}/api/error_details.proto (85%) rename {bdchain => bdledger}/api/tx_ledger.proto (94%) diff --git a/bdchain/api/ac_chain.proto b/bdledger/api/ac_chain.proto similarity index 93% rename from bdchain/api/ac_chain.proto rename to bdledger/api/ac_chain.proto index 986fff5..289e17f 100644 --- a/bdchain/api/ac_chain.proto +++ b/bdledger/api/ac_chain.proto @@ -1,12 +1,12 @@ syntax = "proto3"; -package bdchain.api.acchain; +package bdledger.api.acchain; import "google/protobuf/empty.proto"; -import "bdchain/api/common.proto"; +import "bdledger/api/common.proto"; -option go_package = "bdchain/sdk/api/grpc/acchain"; -option java_package = "bdchain.api.grpc.acchain"; +option go_package = "bdware.org/bdledger/sdk/api/grpc/acchain"; +option java_package = "bdledger.api.grpc.acchain"; option java_outer_classname = "AccountingChainProto"; option java_multiple_files = true; diff --git a/bdchain/api/common.proto b/bdledger/api/common.proto similarity index 74% rename from bdchain/api/common.proto rename to bdledger/api/common.proto index be079a5..53c5d13 100644 --- a/bdchain/api/common.proto +++ b/bdledger/api/common.proto @@ -1,9 +1,9 @@ syntax = "proto3"; -package bdchain.api.common; +package bdledger.api.common; -option go_package = "bdchain/sdk/api/grpc/common"; -option java_package = "bdchain.api.grpc.common"; +option go_package = "bdware.org/bdledger/sdk/api/grpc/common"; +option java_package = "bdledger.api.grpc.common"; option java_outer_classname = "CommonProto"; option java_multiple_files = true; diff --git a/bdchain/api/error_details.proto b/bdledger/api/error_details.proto similarity index 85% rename from bdchain/api/error_details.proto rename to bdledger/api/error_details.proto index e6b9c02..59d6db2 100644 --- a/bdchain/api/error_details.proto +++ b/bdledger/api/error_details.proto @@ -1,9 +1,9 @@ syntax = "proto3"; -package bdchain.api.common; +package bdledger.api.common; -option go_package = "bdchain/sdk/api/grpc/errdetails"; -option java_package = "bdchain.api.grpc.common"; +option go_package = "bdware.org/bdledger/sdk/api/grpc/errdetails"; +option java_package = "bdledger.api.grpc.common"; option java_outer_classname = "ErrorDetailsProto"; option java_multiple_files = true; diff --git a/bdchain/api/tx_ledger.proto b/bdledger/api/tx_ledger.proto similarity index 94% rename from bdchain/api/tx_ledger.proto rename to bdledger/api/tx_ledger.proto index e8fb7df..87c3424 100644 --- a/bdchain/api/tx_ledger.proto +++ b/bdledger/api/tx_ledger.proto @@ -1,12 +1,12 @@ syntax = "proto3"; -package bdchain.api.txledger; +package bdledger.api.txledger; import "google/protobuf/empty.proto"; -import "bdchain/api/common.proto"; +import "bdledger/api/common.proto"; -option go_package = "bdchain/sdk/api/grpc/txledger"; -option java_package = "bdchain.api.grpc.txledger"; +option go_package = "bdware.org/bdledger/sdk/api/grpc/txledger"; +option java_package = "bdledger.api.grpc.txledger"; option java_outer_classname = "TransactionLedgerProto"; option java_multiple_files = true; diff --git a/gen-go.bat b/gen-go.bat index 2c755e1..c4a07f2 100644 --- a/gen-go.bat +++ b/gen-go.bat @@ -9,9 +9,9 @@ where /q %exe% || echo missing %exe% && exit /B where /q %gen% || echo missing %gen% && exit /B if not exist %dir% mkdir %dir% -%exe% -I . --go_out=plugins=grpc:%dir% bdchain/api/common.proto -%exe% -I . --go_out=plugins=grpc:%dir% bdchain/api/error_details.proto -%exe% -I . --go_out=plugins=grpc:%dir% bdchain/api/tx_ledger.proto -%exe% -I . --go_out=plugins=grpc:%dir% bdchain/api/ac_chain.proto +%exe% -I . --go_out=plugins=grpc:%dir% bdledger/api/common.proto +%exe% -I . --go_out=plugins=grpc:%dir% bdledger/api/error_details.proto +%exe% -I . --go_out=plugins=grpc:%dir% bdledger/api/tx_ledger.proto +%exe% -I . --go_out=plugins=grpc:%dir% bdledger/api/ac_chain.proto echo all done diff --git a/gen-go.sh b/gen-go.sh index 3b2356e..2fe8e90 100644 --- a/gen-go.sh +++ b/gen-go.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash mkdir -p gen/go -protoc -I . --go_out=plugins=grpc:gen/go bdchain/api/common.proto -protoc -I . --go_out=plugins=grpc:gen/go bdchain/api/error_details.proto -protoc -I . --go_out=plugins=grpc:gen/go bdchain/api/tx_ledger.proto -protoc -I . --go_out=plugins=grpc:gen/go bdchain/api/ac_chain.proto +protoc -I . --go_out=plugins=grpc:gen/go bdledger/api/common.proto +protoc -I . --go_out=plugins=grpc:gen/go bdledger/api/error_details.proto +protoc -I . --go_out=plugins=grpc:gen/go bdledger/api/tx_ledger.proto +protoc -I . --go_out=plugins=grpc:gen/go bdledger/api/ac_chain.proto diff --git a/gen-web.bat b/gen-web.bat index 3d96dde..d70b493 100644 --- a/gen-web.bat +++ b/gen-web.bat @@ -7,9 +7,9 @@ where /q %exe% || echo missing %exe% && exit /B where /q %gen% || echo missing %gen% && exit /B if not exist %dir% mkdir %dir% -%exe% -I . --js_out=import_style=commonjs:%dir% --grpc-web_out=import_style=commonjs,mode=grpcwebtext:%dir% bdchain/api/common.proto -%exe% -I . --js_out=import_style=commonjs:%dir% --grpc-web_out=import_style=commonjs,mode=grpcwebtext:%dir% bdchain/api/error_details.proto -%exe% -I . --js_out=import_style=commonjs:%dir% --grpc-web_out=import_style=commonjs,mode=grpcwebtext:%dir% bdchain/api/tx_ledger.proto -%exe% -I . --js_out=import_style=commonjs:%dir% --grpc-web_out=import_style=commonjs,mode=grpcwebtext:%dir% bdchain/api/ac_chain.proto +%exe% -I . --js_out=import_style=commonjs:%dir% --grpc-web_out=import_style=commonjs,mode=grpcwebtext:%dir% bdledger/api/common.proto +%exe% -I . --js_out=import_style=commonjs:%dir% --grpc-web_out=import_style=commonjs,mode=grpcwebtext:%dir% bdledger/api/error_details.proto +%exe% -I . --js_out=import_style=commonjs:%dir% --grpc-web_out=import_style=commonjs,mode=grpcwebtext:%dir% bdledger/api/tx_ledger.proto +%exe% -I . --js_out=import_style=commonjs:%dir% --grpc-web_out=import_style=commonjs,mode=grpcwebtext:%dir% bdledger/api/ac_chain.proto echo all done diff --git a/gen-web.sh b/gen-web.sh index 461d97a..34761df 100644 --- a/gen-web.sh +++ b/gen-web.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash dir=gen/web mkdir -p $dir -protoc -I . --js_out=import_style=commonjs:$dir --grpc-web_out=import_style=commonjs,mode=grpcwebtext:$dir bdchain/api/common.proto -protoc -I . --js_out=import_style=commonjs:$dir --grpc-web_out=import_style=commonjs,mode=grpcwebtext:$dir bdchain/api/error_details.proto -protoc -I . --js_out=import_style=commonjs:$dir --grpc-web_out=import_style=commonjs,mode=grpcwebtext:$dir bdchain/api/tx_ledger.proto -protoc -I . --js_out=import_style=commonjs:$dir --grpc-web_out=import_style=commonjs,mode=grpcwebtext:$dir bdchain/api/ac_chain.proto +protoc -I . --js_out=import_style=commonjs:$dir --grpc-web_out=import_style=commonjs,mode=grpcwebtext:$dir bdledger/api/common.proto +protoc -I . --js_out=import_style=commonjs:$dir --grpc-web_out=import_style=commonjs,mode=grpcwebtext:$dir bdledger/api/error_details.proto +protoc -I . --js_out=import_style=commonjs:$dir --grpc-web_out=import_style=commonjs,mode=grpcwebtext:$dir bdledger/api/tx_ledger.proto +protoc -I . --js_out=import_style=commonjs:$dir --grpc-web_out=import_style=commonjs,mode=grpcwebtext:$dir bdledger/api/ac_chain.proto diff --git a/test.md b/test.md index c68216d..61aeb22 100644 --- a/test.md +++ b/test.md @@ -106,7 +106,7 @@ google.protobuf.Empty #### Response ``` -bdchain.api.common.ClientVersionResponse +bdledger.api.common.ClientVersionResponse ``` #### Test cases @@ -635,7 +635,7 @@ google.protobuf.Empty #### Response ``` -bdchain.api.common.ClientVersionResponse +bdledger.api.common.ClientVersionResponse ``` #### Test cases