forked from TrueCloudLab/frostfs-api-go
Alex Vanin
f69d2ad83c
Due to source code relocation from GitHub. Signed-off-by: Alex Vanin <a.vanin@yadro.com>
14 lines
376 B
Go
14 lines
376 B
Go
package accounting
|
|
|
|
import (
|
|
accounting "git.frostfs.info/TrueCloudLab/frostfs-api-go/v2/accounting/grpc"
|
|
"git.frostfs.info/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))
|
|
}
|