This commit is contained in:
laodaming
2023-08-14 11:04:25 +08:00
parent 538d9ff4cf
commit cfc7b22090
9 changed files with 57 additions and 26 deletions

View File

@@ -54,9 +54,10 @@ func (l *HomePageRecommendProductListLogic) HomePageRecommendProductList(req *ty
)
//获取列表推荐产品
recommendProductList, _, err = l.svcCtx.AllModels.FsProductRecommend.GetRecommendProductList(gmodel.GetRecommendProductListReq{
Ctx: l.ctx,
Page: 1,
Limit: 500, //设置最大500
Ctx: l.ctx,
MerchantType: req.MerchantType,
Page: 1,
Limit: 500, //设置最大500
})
if len(recommendProductList) == 0 {
return resp.SetStatusWithMessage(basic.CodeOK, "success", []interface{}{})

View File

@@ -342,12 +342,6 @@ type GetSizeByPidRsp struct {
type GetTemplateByPidReq struct {
Pid string `form:"pid"`
ProductTemplateTagId int64 `form:"product_template_tag_id"`
ProductSizeId int64 `form:"product_size_id,optional"`
}
type GetTemplateByPidRsp struct {
TemplateId int64 `json:"template_id"` //模板id
TemplateInfo interface{} `json:"template_info"` //模板信息
}
type GetFittingByPidReq struct {
@@ -395,7 +389,8 @@ type GetLastProductDesignRsp struct {
}
type HomePageRecommendProductListReq struct {
Size uint32 `form:"size"`
Size uint32 `form:"size"`
MerchantType int64 `form:"merchant_type"`
}
type HomePageRecommendProductListRsp struct {