Separate type definition in accounting/grpc

Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
Alex Vanin 2020-08-20 12:46:58 +03:00 committed by Stanislav Bogatyrev
parent db12420c99
commit 5f2770d522
2 changed files with 15 additions and 14 deletions

View file

@ -5,20 +5,6 @@ import (
service "github.com/nspcc-dev/neofs-api-go/v2/service/grpc" service "github.com/nspcc-dev/neofs-api-go/v2/service/grpc"
) )
// SetValue sets value of the decimal number.
func (m *Decimal) SetValue(v int64) {
if m != nil {
m.Value = v
}
}
// SetPrecision sets precision of the decimal number.
func (m *Decimal) SetPrecision(v uint32) {
if m != nil {
m.Precision = v
}
}
// SetOwnerId sets identifier of the account owner. // SetOwnerId sets identifier of the account owner.
func (m *BalanceRequest_Body) SetOwnerId(v *refs.OwnerID) { func (m *BalanceRequest_Body) SetOwnerId(v *refs.OwnerID) {
if m != nil { if m != nil {

View file

@ -0,0 +1,15 @@
package accounting
// SetValue sets value of the decimal number.
func (m *Decimal) SetValue(v int64) {
if m != nil {
m.Value = v
}
}
// SetPrecision sets precision of the decimal number.
func (m *Decimal) SetPrecision(v uint32) {
if m != nil {
m.Precision = v
}
}