This commit is contained in:
laodaming
2023-09-20 16:46:30 +08:00
parent 5042971472
commit be80525878
5 changed files with 44 additions and 2 deletions

View File

@@ -13,6 +13,9 @@ service product-template-tag {
//获取产品模板标签列表
@handler GetProductTemplateTagsHandler
get /api/product-template-tag/get_product_template_tags(GetProductTemplateTagsReq) returns (response);
//根据模板标签跟logo还有选择颜色的索引获取颜色
@handler GetTemplateTagColorHandler
get /api/product-template-tag/get_template_tag_color(GetTemplateTagColorReq) returns (response);
}
//获取产品模板标签列表
@@ -28,4 +31,14 @@ type GetProductTemplateTagsRsp {
CoverMetadata interface{} `json:"cover_metadata"`
Colors [][]string `json:"colors"`
SelectedColorIndex int `json:"selected_color_index"`
}
//根据模板标签跟logo还有选择颜色的索引获取颜色
type GetTemplateTagColorReq {
Logo string `json:"logo"`
TemplateTag string `json:"template_tag"`
SelectedColorIndex int `json:"selected_color_index"`
}
type GetTemplateTagColorRsp {
Colors [][]string `json:"colors"`
SelectedColorIndex int `json:"selected_color_index"`
}