Compare commits

...

1 Commits

Author SHA1 Message Date
181a5ffb4f Change price type float to int 2024-07-15 20:24:01 +02:00
2 changed files with 4 additions and 4 deletions

View File

@@ -5,5 +5,5 @@ type ProductPriceRequest struct {
} }
type ProductPriceResponse struct { type ProductPriceResponse struct {
Price float64 `json:"price"` Price int `json:"price"`
} }

View File

@@ -3,5 +3,5 @@ package model
type ProductPriceModel struct { type ProductPriceModel struct {
ID int `db:"id"` ID int `db:"id"`
PID string `db:"pid"` PID string `db:"pid"`
Price float64 `db:"price"` Price int `db:"price"`
} }