fix
This commit is contained in:
parent
13d91699f0
commit
60f74f2297
|
@ -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],
|
||||
})
|
||||
|
|
|
@ -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],
|
||||
})
|
||||
|
|
|
@ -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],
|
||||
})
|
||||
|
|
|
@ -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"`
|
||||
}
|
||||
|
|
|
@ -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"`
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user