forked from TrueCloudLab/frostfs-api
e6fce062df
Move Decimal message definition to accounting package since it is only used there. Package decimal is completely removed from the repository. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
38 lines
1.2 KiB
Protocol Buffer
38 lines
1.2 KiB
Protocol Buffer
syntax = "proto3";
|
|
package accounting;
|
|
option go_package = "github.com/nspcc-dev/neofs-api-go/accounting";
|
|
option csharp_namespace = "NeoFS.API.Accounting";
|
|
|
|
import "service/meta.proto";
|
|
import "service/verify.proto";
|
|
import "refs/types.proto";
|
|
|
|
// Accounting is a service that provides access for accounting balance
|
|
// information
|
|
service Accounting {
|
|
// Balance returns current balance status of the NeoFS user
|
|
rpc Balance(BalanceRequest) returns (BalanceResponse);
|
|
}
|
|
|
|
message BalanceRequest {
|
|
// OwnerID carries user identifier in NeoFS system.
|
|
refs.OwnerID OwnerID = 1;
|
|
// RequestMetaHeader contains information about request meta headers (should be embedded into message)
|
|
service.RequestMetaHeader Meta = 98;
|
|
// RequestVerificationHeader is a set of signatures of every NeoFS Node that processed request (should be embedded into message)
|
|
service.RequestVerificationHeader Verify = 99;
|
|
}
|
|
|
|
// Decimal represents the decimal numbers.
|
|
message Decimal {
|
|
// Value carries number value.
|
|
int64 Value = 1;
|
|
|
|
// Precision carries value precision.
|
|
uint32 Precision = 2;
|
|
}
|
|
|
|
message BalanceResponse {
|
|
// Balance contains current account balance state
|
|
Decimal Balance = 1;
|
|
}
|