Merge branch 'develop' of https://gitee.com/fusenpack/fusenapi into feature/auth

This commit is contained in:
eson
2023-08-16 10:43:33 +08:00
63 changed files with 367 additions and 238 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"`
}