fix products

This commit is contained in:
Efril
2026-05-14 01:19:45 +07:00
parent 21fa21d089
commit 50d633ee3a
10 changed files with 146 additions and 50 deletions
+8
View File
@@ -100,6 +100,8 @@ type ProductResponse struct {
Name string
Description *string
Price float64
OutletPrice *float64 // outlet-specific price, nil if not set
OutletPrices []OutletPrice // all outlet prices, populated when no outletID in context
Cost float64
BusinessType constants.BusinessType
ImageURL *string
@@ -113,6 +115,12 @@ type ProductResponse struct {
Variants []ProductVariantResponse
}
type OutletPrice struct {
OutletID uuid.UUID
OutletName string
Price float64
}
type ProductVariantResponse struct {
ID uuid.UUID
ProductID uuid.UUID