Compare commits

...

2 Commits

Author SHA1 Message Date
181a5ffb4f Change price type float to int 2024-07-15 20:24:01 +02:00
4d86de6692 go.mod update priv git url 2024-05-30 17:02:02 +02:00
3 changed files with 5 additions and 5 deletions

2
go.mod
View File

@@ -1,4 +1,4 @@
module git.pbiernat.dev/egommerce/api-entities
module git.pbiernat.io/egommerce/api-entities
go 1.19

View File

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

View File

@@ -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"`
}