Fix code style

This commit is contained in:
Nex
2018-10-08 21:38:12 +08:00
parent dd26770c1c
commit d6dacf48e0
3 changed files with 77 additions and 77 deletions

View File

@@ -11,35 +11,35 @@ option java_outer_classname = "TransactionLedgerProto";
option java_multiple_files = true;
service TransactionLedger {
rpc ClientVersion (google.protobuf.Empty) returns (ClientVersionResponse);
rpc CreateLedger (CreateLedgerRequest) returns (CreateLedgerResponse);
rpc GetLedgers (google.protobuf.Empty) returns (GetLedgersResponse);
rpc SendTransaction (SendTransactionRequest) returns (SendTransactionResponse);
rpc ClientVersion (google.protobuf.Empty) returns (ClientVersionResponse);
rpc CreateLedger (CreateLedgerRequest) returns (CreateLedgerResponse);
rpc GetLedgers (google.protobuf.Empty) returns (GetLedgersResponse);
rpc SendTransaction (SendTransactionRequest) returns (SendTransactionResponse);
}
message CreateLedgerRequest {
string name = 1;
string name = 1;
}
message CreateLedgerResponse {
Error error = 1;
Error error = 1;
}
message GetLedgersResponse {
Error error = 1;
repeated string ledgers = 2;
Error error = 1;
repeated string ledgers = 2;
}
message SendTransactionRequest {
string ledger = 1;
message Transaction {
TransactionType type = 1;
bytes from = 2;
bytes to = 3;
bytes data = 4;
}
Transaction transaction = 2;
string ledger = 1;
message Transaction {
TransactionType type = 1;
bytes from = 2;
bytes to = 3;
bytes data = 4;
}
Transaction transaction = 2;
}
message SendTransactionResponse {
Error error = 1;
bytes hash = 2;
Error error = 1;
bytes hash = 2;
}