update mapping
This commit is contained in:
@@ -32,7 +32,7 @@ type ItemMeta struct {
|
|||||||
type CartItem struct {
|
type CartItem struct {
|
||||||
Id uint32 `json:"id"`
|
Id uint32 `json:"id"`
|
||||||
ItemId uint32 `json:"itemId,omitempty"`
|
ItemId uint32 `json:"itemId,omitempty"`
|
||||||
ParentId uint32 `json:"parentId,omitempty"`
|
ParentId *uint32 `json:"parentId,omitempty"`
|
||||||
Sku string `json:"sku"`
|
Sku string `json:"sku"`
|
||||||
Price Price `json:"price"`
|
Price Price `json:"price"`
|
||||||
TotalPrice Price `json:"totalPrice"`
|
TotalPrice Price `json:"totalPrice"`
|
||||||
|
|||||||
@@ -76,6 +76,8 @@ func AddItem(g *CartGrain, m *messages.AddItem) error {
|
|||||||
SellerId: m.SellerId,
|
SellerId: m.SellerId,
|
||||||
SellerName: m.SellerName,
|
SellerName: m.SellerName,
|
||||||
},
|
},
|
||||||
|
SaleStatus: m.SaleStatus,
|
||||||
|
ParentId: m.ParentId,
|
||||||
|
|
||||||
Price: *pricePerItem,
|
Price: *pricePerItem,
|
||||||
TotalPrice: *MultiplyPrice(*pricePerItem, int64(m.Quantity)),
|
TotalPrice: *MultiplyPrice(*pricePerItem, int64(m.Quantity)),
|
||||||
|
|||||||
Reference in New Issue
Block a user