This commit is contained in:
laodaming 2023-10-25 13:06:19 +08:00
parent 5855ba8dde
commit 6901177f05
3 changed files with 5 additions and 0 deletions

View File

@ -245,6 +245,7 @@ func (l *GetProductDetailLogic) GetProductDetail(req *types.GetProductDetailReq,
})
}
return resp.SetStatusWithMessage(basic.CodeOK, "success", types.GetProductDetailRsp{
Logo: req.Logo,
TemplateTagColorInfo: templateTagColorInfo,
ProductInfo: types.ProductInfo{
Id: productInfo.Id,
@ -358,6 +359,8 @@ func (l *GetProductDetailLogic) GetTemplateTagColor(req *types.GetProductDetailR
}
if profile["logo_url"] != nil && reflect.TypeOf(profile["logo_url"]).String() == "string" {
req.Logo = profile["logo_url"].(string)
} else {
return types.TemplateTagColorInfo{}, errors.New("default profile logo url is not set !!")
}
}
//根据logo查询素材资源

View File

@ -175,6 +175,7 @@ type GetProductDetailReq struct {
}
type GetProductDetailRsp struct {
Logo string `json:"logo"` //logo
TemplateTagColorInfo TemplateTagColorInfo `json:"template_tag_color_info"` //标签颜色信息
ProductInfo ProductInfo `json:"product_info"` //产品基本信息
BaseColors interface{} `json:"base_colors"` //一些返回写死的颜色

View File

@ -210,6 +210,7 @@ type GetProductDetailReq {
Logo string `form:"logo"` //logo地址
}
type GetProductDetailRsp {
Logo string `json:"logo"` //logo
TemplateTagColorInfo TemplateTagColorInfo `json:"template_tag_color_info"` //标签颜色信息
ProductInfo ProductInfo `json:"product_info"` //产品基本信息
BaseColors interface{} `json:"base_colors"` //一些返回写死的颜色