This commit is contained in:
laodaming 2023-10-25 14:37:32 +08:00
parent 8dc98d4aca
commit 9cb979d830
3 changed files with 5 additions and 5 deletions

View File

@ -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),

View File

@ -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"`

View File

@ -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"`