This commit is contained in:
laodaming 2023-09-06 15:04:51 +08:00
parent 13d91699f0
commit 60f74f2297
5 changed files with 5 additions and 5 deletions

View File

@ -151,7 +151,7 @@ func (l *GetRecommandProductListLogic) GetRecommandProductList(req *types.GetRec
mapTagProp := make(map[int64][]types.CoverDefaultItem)
for _, v := range productTagPropList {
mapTagProp[*v.ProductId] = append(mapTagProp[*v.ProductId], types.CoverDefaultItem{
Tag: v.TemplateTag,
TemplateTag: v.TemplateTag,
Cover: *v.Cover,
CoverMetadata: mapResourceMetadata[*v.Cover],
})

View File

@ -223,7 +223,7 @@ func (l *GetTagProductListLogic) getProductRelationInfo(req getProductRelationIn
}
for _, v := range productTagPropList {
req.MapTagProp[*v.ProductId] = append(req.MapTagProp[*v.ProductId], types.CoverDefaultItem{
Tag: v.TemplateTag,
TemplateTag: v.TemplateTag,
Cover: *v.Cover,
CoverMetadata: req.MapResourceMetadata[*v.Cover],
})

View File

@ -184,7 +184,7 @@ func (l *HomePageRecommendProductListLogic) HomePageRecommendProductList(req *ty
mapTagProp := make(map[int64][]types.CoverDefaultItem)
for _, v := range productTagPropList {
mapTagProp[*v.ProductId] = append(mapTagProp[*v.ProductId], types.CoverDefaultItem{
Tag: v.TemplateTag,
TemplateTag: v.TemplateTag,
Cover: *v.Cover,
CoverMetadata: mapResourceMetadata[*v.Cover],
})

View File

@ -284,7 +284,7 @@ type TagProduct struct {
}
type CoverDefaultItem struct {
Tag string `json:"tag"`
TemplateTag string `json:"tag"`
Cover string `json:"cover"`
CoverMetadata interface{} `json:"cover_metadata"`
}

View File

@ -333,7 +333,7 @@ type TagProduct {
Recommended bool `json:"recommended"`
}
type CoverDefaultItem {
Tag string `json:"tag"`
TemplateTag string `json:"tag"`
Cover string `json:"cover"`
CoverMetadata interface{} `json:"cover_metadata"`
}