update mapping
All checks were successful
Build and Publish / Metadata (push) Successful in 12s
Build and Publish / BuildAndDeployAmd64 (push) Successful in 59s
Build and Publish / BuildAndDeployArm64 (push) Successful in 3m55s

This commit is contained in:
2025-10-16 21:54:20 +02:00
parent c060680768
commit 8ecad3060f
2 changed files with 3 additions and 1 deletions

View File

@@ -32,7 +32,7 @@ type ItemMeta struct {
type CartItem struct {
Id uint32 `json:"id"`
ItemId uint32 `json:"itemId,omitempty"`
ParentId uint32 `json:"parentId,omitempty"`
ParentId *uint32 `json:"parentId,omitempty"`
Sku string `json:"sku"`
Price Price `json:"price"`
TotalPrice Price `json:"totalPrice"`

View File

@@ -76,6 +76,8 @@ func AddItem(g *CartGrain, m *messages.AddItem) error {
SellerId: m.SellerId,
SellerName: m.SellerName,
},
SaleStatus: m.SaleStatus,
ParentId: m.ParentId,
Price: *pricePerItem,
TotalPrice: *MultiplyPrice(*pricePerItem, int64(m.Quantity)),