From 0311bf82fc4ef409a5db114f718b885268589cf8 Mon Sep 17 00:00:00 2001 From: laodaming <11058467+laudamine@user.noreply.gitee.com> Date: Fri, 21 Jul 2023 14:15:43 +0800 Subject: [PATCH] fix --- server/product/internal/types/types.go | 4 ++-- server_api/product.api | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/server/product/internal/types/types.go b/server/product/internal/types/types.go index 0274855a..d073cec1 100644 --- a/server/product/internal/types/types.go +++ b/server/product/internal/types/types.go @@ -228,8 +228,8 @@ type OtherProductListRsp struct { } type GetRecommandProductListReq struct { - Size uint32 `form:"size"` - Num int64 `form:"num"` + Size uint32 `form:"size,optional"` + Num int64 `form:"num,optional"` Sn string `form:"sn"` } diff --git a/server_api/product.api b/server_api/product.api index e1689820..6155294a 100644 --- a/server_api/product.api +++ b/server_api/product.api @@ -281,8 +281,8 @@ type OtherProductListRsp { } //获取详情页推荐产品列表 type GetRecommandProductListReq { - Size uint32 `form:"size"` - Num int64 `form:"num"` + Size uint32 `form:"size,optional"` + Num int64 `form:"num,optional"` Sn string `form:"sn"` } type GetRecommandProductListRsp {