Files
sendico/api/server/interface/api/sresponse/money.go
2025-12-11 01:13:13 +01:00

17 lines
289 B
Go

package sresponse
import (
"github.com/tech/sendico/pkg/model"
moneyv1 "github.com/tech/sendico/pkg/proto/common/money/v1"
)
func toMoney(m *moneyv1.Money) *model.Money {
if m == nil {
return nil
}
return &model.Money{
Amount: m.GetAmount(),
Currency: m.GetCurrency(),
}
}