diff --git a/server/product/internal/logic/getrecommandproductlistlogic.go b/server/product/internal/logic/getrecommandproductlistlogic.go index a210a949..1adbd72a 100644 --- a/server/product/internal/logic/getrecommandproductlistlogic.go +++ b/server/product/internal/logic/getrecommandproductlistlogic.go @@ -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], }) diff --git a/server/product/internal/logic/gettagproductlistlogic.go b/server/product/internal/logic/gettagproductlistlogic.go index ce6a865e..dd376605 100644 --- a/server/product/internal/logic/gettagproductlistlogic.go +++ b/server/product/internal/logic/gettagproductlistlogic.go @@ -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], }) diff --git a/server/product/internal/logic/homepagerecommendproductlistlogic.go b/server/product/internal/logic/homepagerecommendproductlistlogic.go index 28a385c6..10c3ca44 100644 --- a/server/product/internal/logic/homepagerecommendproductlistlogic.go +++ b/server/product/internal/logic/homepagerecommendproductlistlogic.go @@ -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], }) diff --git a/server/product/internal/types/types.go b/server/product/internal/types/types.go index b8eb9f46..dccd613b 100644 --- a/server/product/internal/types/types.go +++ b/server/product/internal/types/types.go @@ -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"` } diff --git a/server_api/product.api b/server_api/product.api index 44c92d52..054be734 100644 --- a/server_api/product.api +++ b/server_api/product.api @@ -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"` }