This commit is contained in:
laodaming 2023-10-24 10:07:08 +08:00
parent 5b92c3833b
commit 9f12f7035c
3 changed files with 3 additions and 0 deletions

View File

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

View File

@ -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 {

View File

@ -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 {