From 181a5ffb4ff1ae8df63ecdcb520f5961d51a1dd5 Mon Sep 17 00:00:00 2001 From: Piotr Biernat Date: Mon, 15 Jul 2024 20:24:01 +0200 Subject: [PATCH] Change price type float to int --- http/pricing.go | 2 +- model/pricing.go | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) 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"` }