frostfs-api-go/accounting/service.proto
Evgeniy Kulikov 1cf33e5ffd
initial
2019-11-18 16:34:06 +03:00

23 lines
608 B
Protocol Buffer

syntax = "proto3";
package accounting;
option go_package = "github.com/nspcc-dev/neofs-proto/accounting";
import "decimal/decimal.proto";
import "accounting/types.proto";
import "github.com/gogo/protobuf/gogoproto/gogo.proto";
option (gogoproto.stable_marshaler_all) = true;
service Accounting {
rpc Balance(BalanceRequest) returns (BalanceResponse);
}
message BalanceRequest {
bytes OwnerID = 1 [(gogoproto.customtype) = "OwnerID", (gogoproto.nullable) = false];
uint32 TTL = 2;
}
message BalanceResponse {
decimal.Decimal Balance = 1;
repeated Account LockAccounts = 2;
}