fix
This commit is contained in:
parent
af35164fb2
commit
8d4901cdcd
|
@ -246,6 +246,7 @@ func (l *AddToCartLogic) AddToCart(req *types.AddToCartReq, userinfo *auth.UserI
|
|||
ProductId: &req.ProductId,
|
||||
TemplateId: &req.TemplateId,
|
||||
ModelId: &modelInfo.Id,
|
||||
IsHighlyCustomized: &req.IsHighlyCustomized,
|
||||
LightId: modelInfo.Light,
|
||||
SizeId: &req.SizeId,
|
||||
FittingId: &req.FittingId,
|
||||
|
|
|
@ -197,7 +197,7 @@ func (l *GetCartsLogic) GetCarts(req *types.GetCartsReq, userinfo *auth.UserInfo
|
|||
PurchaseQuantity: *cart.PurchaseQuantity,
|
||||
MinPurchaseQuantity: stepPrice.MinBuyUnitsNum,
|
||||
StepPurchaseQuantity: stepPurchaseQuantity,
|
||||
IsHighlyCustomized: *cart.IsHighlyCustomized > 0,
|
||||
IsHighlyCustomized: *cart.IsHighlyCustomized,
|
||||
IsSelected: cartIsSelected,
|
||||
TemplateTag: templateTag,
|
||||
Logo: snapShot.Logo,
|
||||
|
|
|
@ -8,6 +8,7 @@ import (
|
|||
type AddToCartReq struct {
|
||||
ProductId int64 `json:"product_id"` //产品id
|
||||
TemplateId int64 `json:"template_id,optional"` //模板id(不可定制的不传)
|
||||
IsHighlyCustomized int64 `json:"is_highly_customized"` //是否高度定制
|
||||
SelectColorIndex int64 `json:"select_color_index"` //选择的颜色索引
|
||||
SizeId int64 `json:"size_id"` //尺寸id
|
||||
FittingId int64 `json:"fitting_id,optional"` //配件id(没有可以不传)
|
||||
|
@ -50,7 +51,7 @@ type CartItem struct {
|
|||
PurchaseQuantity int64 `json:"purchase_quantity"` //当前购买数量
|
||||
MinPurchaseQuantity int64 `json:"min_purchase_quantity"` //起购数量
|
||||
StepPurchaseQuantity int64 `json:"step_purchase_quantity"` //购买加或者减少步进量
|
||||
IsHighlyCustomized bool `json:"is_highly_customized"` //是否高度定制
|
||||
IsHighlyCustomized int64 `json:"is_highly_customized"` //是否高度定制
|
||||
IsInvalid bool `json:"is_invalid"` //是否无效
|
||||
InvalidDescription string `json:"invalid_description"` //无效原因
|
||||
IsSelected bool `json:"is_selected"` //是否选中
|
||||
|
|
|
@ -27,6 +27,7 @@ service shopping-cart {
|
|||
type AddToCartReq {
|
||||
ProductId int64 `json:"product_id"` //产品id
|
||||
TemplateId int64 `json:"template_id,optional"` //模板id(不可定制的不传)
|
||||
IsHighlyCustomized int64 `json:"is_highly_customized"` //是否高度定制
|
||||
SelectColorIndex int64 `json:"select_color_index"` //选择的颜色索引
|
||||
SizeId int64 `json:"size_id"` //尺寸id
|
||||
FittingId int64 `json:"fitting_id,optional"` //配件id(没有可以不传)
|
||||
|
@ -67,7 +68,7 @@ type CartItem {
|
|||
PurchaseQuantity int64 `json:"purchase_quantity"` //当前购买数量
|
||||
MinPurchaseQuantity int64 `json:"min_purchase_quantity"` //起购数量
|
||||
StepPurchaseQuantity int64 `json:"step_purchase_quantity"` //购买加或者减少步进量
|
||||
IsHighlyCustomized bool `json:"is_highly_customized"` //是否高度定制
|
||||
IsHighlyCustomized int64 `json:"is_highly_customized"` //是否高度定制
|
||||
IsInvalid bool `json:"is_invalid"` //是否无效
|
||||
InvalidDescription string `json:"invalid_description"` //无效原因
|
||||
IsSelected bool `json:"is_selected"` //是否选中
|
||||
|
|
Loading…
Reference in New Issue
Block a user