diff --git a/server/product/internal/logic/gettagproductlistlogic.go b/server/product/internal/logic/gettagproductlistlogic.go index 0d7659ba..cce5378b 100644 --- a/server/product/internal/logic/gettagproductlistlogic.go +++ b/server/product/internal/logic/gettagproductlistlogic.go @@ -310,8 +310,8 @@ func (l *GetTagProductListLogic) dealWithTagMenuData(req dealWithTagMenuDataReq) }) //tag中产品 for _, tmpProduct := range productListRsp { - tagTem.TagProductList = append(tagTem.TagProductList, tmpProduct.ProductId) - req.MapTagProduct[tmpProduct.ProductId] = tmpProduct + tagTem.TagProductList = append(tagTem.TagProductList, tmpProduct.Id) + req.MapTagProduct[tmpProduct.Id] = tmpProduct } } //加入分类 @@ -427,7 +427,7 @@ func (l *GetTagProductListLogic) getTagProducts(req getTagProductsReq) (productL haveOptionalFitting = true } item := types.TagProduct{ - ProductId: productInfo.Id, + Id: productInfo.Id, Sn: *productInfo.Sn, Title: *productInfo.Title, SizeNum: uint32(sizeNum), diff --git a/server/product/internal/types/types.go b/server/product/internal/types/types.go index fa2a8e91..c1833896 100644 --- a/server/product/internal/types/types.go +++ b/server/product/internal/types/types.go @@ -51,7 +51,7 @@ type TagItem struct { } type TagProduct struct { - ProductId int64 `json:"product_id"` + Id int64 `json:"id"` Sn string `json:"sn"` Title string `json:"title"` Cover string `json:"cover"` diff --git a/server_api/product.api b/server_api/product.api index 9b61723b..7dc15731 100644 --- a/server_api/product.api +++ b/server_api/product.api @@ -91,7 +91,7 @@ type TagItem { ChildTagList []*TagItem `json:"child_tag_list"` } type TagProduct { - ProductId int64 `json:"product_id"` + Id int64 `json:"id"` Sn string `json:"sn"` Title string `json:"title"` Cover string `json:"cover"`