14 lines
364 B
Go
14 lines
364 B
Go
package accounting
|
|
|
|
import (
|
|
accounting "github.com/TrueCloudLab/frostfs-api-go/v2/accounting/grpc"
|
|
"github.com/TrueCloudLab/frostfs-api-go/v2/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))
|
|
}
|