This commit is contained in:
laodaming 2023-08-15 19:43:50 +08:00
parent 68ed14b373
commit ac1800bb26
3 changed files with 3 additions and 3 deletions

View File

@ -36,7 +36,7 @@ func NewGetRecommandProductListLogic(ctx context.Context, svcCtx *svc.ServiceCon
func (l *GetRecommandProductListLogic) GetRecommandProductList(req *types.GetRecommandProductListReq, userinfo *auth.UserInfo) (resp *basic.Response) {
req.Num = 4 //写死4个
if req.Size > 0 {
req.Size = image.GetCurrentSize(req.Size)
req.Size = int32(image.GetCurrentSize(uint32(req.Size)))
}
productInfo, err := l.svcCtx.AllModels.FsProduct.FindOneBySn(l.ctx, req.Sn)
if err != nil {

View File

@ -228,7 +228,7 @@ type OtherProductListRsp struct {
}
type GetRecommandProductListReq struct {
Size uint32 `form:"size,optional"`
Size int32 `form:"size,optional"`
Num int64 `form:"num,optional"`
Sn string `form:"sn"`
}

View File

@ -281,7 +281,7 @@ type OtherProductListRsp {
}
//获取详情页推荐产品列表
type GetRecommandProductListReq {
Size uint32 `form:"size,optional"`
Size int32 `form:"size,optional"`
Num int64 `form:"num,optional"`
Sn string `form:"sn"`
}