14 lines
378 B
Go
14 lines
378 B
Go
package accounting
|
|
|
|
import (
|
|
accounting "git.frostfs.info/TrueCloudLab/frostfs-sdk-go/api/accounting/grpc"
|
|
"git.frostfs.info/TrueCloudLab/frostfs-sdk-go/api/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))
|
|
}
|