diff --git a/http/pricing.go b/http/pricing.go index ee42dc2..b613e83 100644 --- a/http/pricing.go +++ b/http/pricing.go @@ -5,5 +5,5 @@ type ProductPriceRequest struct { } type ProductPriceResponse struct { - Price float64 `json:"price"` + Price int `json:"price"` } diff --git a/model/pricing.go b/model/pricing.go index a9efbab..6ab3884 100644 --- a/model/pricing.go +++ b/model/pricing.go @@ -1,7 +1,7 @@ package model type ProductPriceModel struct { - ID int `db:"id"` - PID string `db:"pid"` - Price float64 `db:"price"` + ID int `db:"id"` + PID string `db:"pid"` + Price int `db:"price"` }