fix
This commit is contained in:
parent
68ed14b373
commit
ac1800bb26
|
@ -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 {
|
||||
|
|
|
@ -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"`
|
||||
}
|
||||
|
|
|
@ -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"`
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user