14 lines
382 B
Go
14 lines
382 B
Go
package accounting
|
|
|
|
import (
|
|
accounting "git.frostfs.info/TrueCloudLab/frostfs-sdk-go/apiv2/accounting/grpc"
|
|
"git.frostfs.info/TrueCloudLab/frostfs-sdk-go/apiv2/rpc/message"
|
|
)
|
|
|
|
func (d *Decimal) MarshalJSON() ([]byte, error) {
|
|
return message.MarshalJSON(d)
|
|
}
|
|
|
|
func (d *Decimal) UnmarshalJSON(data []byte) error {
|
|
return message.UnmarshalJSON(d, data, new(accounting.Decimal))
|
|
}
|