2020-11-13 10:38:49 +00:00
|
|
|
package accounting
|
|
|
|
|
|
|
|
import (
|
|
|
|
accounting "github.com/nspcc-dev/neofs-api-go/v2/accounting/grpc"
|
2021-11-16 17:30:55 +00:00
|
|
|
"github.com/nspcc-dev/neofs-api-go/v2/rpc/message"
|
2020-11-13 10:38:49 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
func (d *Decimal) MarshalJSON() ([]byte, error) {
|
2021-03-12 12:57:23 +00:00
|
|
|
return message.MarshalJSON(d)
|
2020-11-13 10:38:49 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (d *Decimal) UnmarshalJSON(data []byte) error {
|
2021-03-12 12:57:23 +00:00
|
|
|
return message.UnmarshalJSON(d, data, new(accounting.Decimal))
|
2020-11-13 10:38:49 +00:00
|
|
|
}
|