frostfs-sdk-go/apiv2/accounting/json.go
Pavel Pogodaev 397123a810
Some checks failed
Tests and linters / Tests (pull_request) Failing after 42s
DCO / DCO (pull_request) Failing after 59s
Tests and linters / Lint (pull_request) Failing after 1m1s
[] Merge repo with frostfs-api-go
Signed-off-by: Pavel Pogodaev <p.pogodaev@yadro.com>
2024-10-08 13:34:42 +03:00

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))
}