chore: fix product

This commit is contained in:
2026-02-22 14:36:56 +01:00
parent 2d9bec7392
commit dd10da1536
9 changed files with 38 additions and 20 deletions
+8 -8
View File
@@ -17,19 +17,19 @@ type Product struct {
type ProductPrice struct {
ID int `json:"id"`
ProductID int `json:"product_id"`
Quantity int `json:"quantity" binding:"required"`
Quantity float64 `json:"quantity" binding:"required"`
Price float64 `json:"price" binding:"required"`
CreatedAt time.Time `json:"created_at"`
}
type StockInfo struct {
ProductID int `json:"product_id"`
ProductName string `json:"product_name"`
Category string `json:"category"`
Quantity int `json:"quantity"`
Reserved int `json:"reserved"`
Available int `json:"available"`
LastUpdated string `json:"last_updated"`
ProductID int `json:"product_id"`
ProductName string `json:"product_name"`
Category string `json:"category"`
Quantity float64 `json:"quantity"`
Reserved float64 `json:"reserved"`
Available float64 `json:"available"`
LastUpdated string `json:"last_updated"`
}
// ============================================