update package name

This commit is contained in:
MYLS 2019-09-26 18:06:06 +08:00
parent 70d4bb0f0c
commit 3dc5c90025
9 changed files with 32 additions and 32 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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