From d59142e017e1606eff7215053f60568b1280e3d2 Mon Sep 17 00:00:00 2001 From: momo <1012651275@qq.com> Date: Wed, 20 Sep 2023 15:39:23 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E8=B4=AD=E7=89=A9=E8=BD=A6=E4=B8=8B?= =?UTF-8?q?=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- model/gmodel/fs_order_logic.go | 6 +++--- service/repositories/order.go | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/model/gmodel/fs_order_logic.go b/model/gmodel/fs_order_logic.go index fd2ed2c2..b24d4cc2 100644 --- a/model/gmodel/fs_order_logic.go +++ b/model/gmodel/fs_order_logic.go @@ -116,11 +116,11 @@ type OrderProduct struct { ItemPrice AmountInfo `json:"product_price"` // 商品单价 ProductSnapshot map[string]interface{} `json:"product_snapshot"` // 商品快照 ShoppingCartSnapshot *FsShoppingCart `json:"shopping_cart_snapshot"` // 购物车快照 - DiyInformation UserDiyInformation `json:"diy_information"` - FittingInfo FittingInfo `json:"fitting_info"` + DiyInformation *UserDiyInformation `json:"diy_information"` + FittingInfo *FittingInfo `json:"fitting_info"` ProductCover string `json:"product_cover"` // 商品封面 ProductCoverMetadata map[string]interface{} `json:"product_cover_metadata"` // 商品封面 ProductSn string `json:"product_sn"` // 商品编码 - SizeInfo SizeInfo `json:"size_info"` + SizeInfo *SizeInfo `json:"size_info"` StepNum []int `json:"step_num"` // 阶梯数量 } diff --git a/service/repositories/order.go b/service/repositories/order.go index 2af2b37b..987cff47 100644 --- a/service/repositories/order.go +++ b/service/repositories/order.go @@ -282,9 +282,9 @@ func (d *defaultOrder) Create(ctx context.Context, in *CreateReq) (res *CreateRe ProductSnapshot: productSnapshot, ShoppingCartSnapshot: &shoppingCart.FsShoppingCart, ProductSn: *shoppingCart.ShoppingCartProduct.Sn, - DiyInformation: shoppingCartSnapshot.UserDiyInformation, - FittingInfo: shoppingCartSnapshot.FittingInfo, - SizeInfo: shoppingCartSnapshot.SizeInfo, + DiyInformation: &shoppingCartSnapshot.UserDiyInformation, + FittingInfo: &shoppingCartSnapshot.FittingInfo, + SizeInfo: &shoppingCartSnapshot.SizeInfo, StepNum: stepNum, }) }