fix
This commit is contained in:
parent
5855ba8dde
commit
6901177f05
|
@ -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查询素材资源
|
||||
|
|
|
@ -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"` //一些返回写死的颜色
|
||||
|
|
|
@ -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"` //一些返回写死的颜色
|
||||
|
|
Loading…
Reference in New Issue
Block a user