update package name
This commit is contained in:
parent
70d4bb0f0c
commit
3dc5c90025
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
4
test.md
4
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
|
||||
|
Loading…
Reference in New Issue
Block a user