Separate type definition in accounting/grpc
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
parent
db12420c99
commit
5f2770d522
2 changed files with 15 additions and 14 deletions
|
@ -5,20 +5,6 @@ import (
|
|||
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.
|
||||
func (m *BalanceRequest_Body) SetOwnerId(v *refs.OwnerID) {
|
||||
if m != nil {
|
||||
|
|
15
v2/accounting/grpc/types.go
Normal file
15
v2/accounting/grpc/types.go
Normal 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
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue