fix
This commit is contained in:
parent
05ec312127
commit
ee37c10399
|
@ -172,9 +172,9 @@ func (l *GetRecommandProductListLogic) GetRecommandProductList(req *types.GetRec
|
|||
if sc, ok := mapProductSizeCount[v.Id]; ok {
|
||||
sizeCount = sc
|
||||
}
|
||||
haveOptionalFitting := int64(0)
|
||||
haveOptionalFitting := false
|
||||
if _, ok := mapProductHaveOptionFitting[v.Id]; ok {
|
||||
haveOptionalFitting = 1
|
||||
haveOptionalFitting = true
|
||||
}
|
||||
item := types.GetRecommandProductListRsp{
|
||||
Id: v.Id,
|
||||
|
|
|
@ -25,7 +25,7 @@ type GetRecommandProductListRsp struct {
|
|||
MinPrice int64 `json:"min_price"`
|
||||
IsCustomization int64 `json:"is_customization"`
|
||||
SizeCount int64 `json:"size_count"`
|
||||
HaveOptionalFitting int64 `json:"have_optional_fitting"`
|
||||
HaveOptionalFitting bool `json:"have_optional_fitting"`
|
||||
}
|
||||
|
||||
type GetTagProductListReq struct {
|
||||
|
|
|
@ -71,7 +71,7 @@ type GetRecommandProductListRsp {
|
|||
MinPrice int64 `json:"min_price"`
|
||||
IsCustomization int64 `json:"is_customization"`
|
||||
SizeCount int64 `json:"size_count"`
|
||||
HaveOptionalFitting int64 `json:"have_optional_fitting"`
|
||||
HaveOptionalFitting bool `json:"have_optional_fitting"`
|
||||
}
|
||||
//获取分类产品列表
|
||||
type GetTagProductListReq {
|
||||
|
|
Loading…
Reference in New Issue
Block a user