diff --git a/server/product/internal/types/types.go b/server/product/internal/types/types.go index 4ac39ef0..e6290702 100644 --- a/server/product/internal/types/types.go +++ b/server/product/internal/types/types.go @@ -8,7 +8,7 @@ import ( type GetProductListReq struct { Cid int64 `form:"cid"` Size uint32 `form:"size"` - Page uint32 `form:"page"` + Page uint32 `form:"page,optional"` IsDemo uint32 `form:"is_demo,optional"` } diff --git a/server_api/product.api b/server_api/product.api index b51973e9..cc3c6548 100644 --- a/server_api/product.api +++ b/server_api/product.api @@ -43,7 +43,7 @@ service product { type GetProductListReq { Cid int64 `form:"cid"` Size uint32 `form:"size"` - Page uint32 `form:"page"` + Page uint32 `form:"page,optional"` IsDemo uint32 `form:"is_demo,optional"` } type GetProductListRsp {