diff --git a/server/product-template-tag/internal/logic/getproducttemplatetagslogic.go b/server/product-template-tag/internal/logic/getproducttemplatetagslogic.go index 31e0576f..10a9c199 100644 --- a/server/product-template-tag/internal/logic/getproducttemplatetagslogic.go +++ b/server/product-template-tag/internal/logic/getproducttemplatetagslogic.go @@ -180,6 +180,7 @@ func (l *GetProductTemplateTagsLogic) GetProductTemplateTags(req *types.GetProdu CoverMetadata: mapResourceMetadata[*templateTagInfo.Cover], Colors: colors, SelectedColorIndex: SelectedColorIndex, + ProductId: 30, }) } return resp.SetStatusWithMessage(basic.CodeOK, "success", list) diff --git a/server/product-template-tag/internal/types/types.go b/server/product-template-tag/internal/types/types.go index 21280e74..21093522 100644 --- a/server/product-template-tag/internal/types/types.go +++ b/server/product-template-tag/internal/types/types.go @@ -19,6 +19,7 @@ type GetProductTemplateTagsRsp struct { CoverMetadata interface{} `json:"cover_metadata"` Colors [][]string `json:"colors"` SelectedColorIndex int `json:"selected_color_index"` + ProductId int64 `json:"product_id"` } type GetTemplateTagColorReq struct { diff --git a/server_api/product-template-tag.api b/server_api/product-template-tag.api index d550070b..ae5f3e04 100644 --- a/server_api/product-template-tag.api +++ b/server_api/product-template-tag.api @@ -32,6 +32,7 @@ type GetProductTemplateTagsRsp { CoverMetadata interface{} `json:"cover_metadata"` Colors [][]string `json:"colors"` SelectedColorIndex int `json:"selected_color_index"` + ProductId int64 `json:"product_id"` } //根据模板标签跟logo还有选择颜色的索引获取颜色 type GetTemplateTagColorReq {