From e0de8bfcf215d5c61805165475da318829e1ba50 Mon Sep 17 00:00:00 2001 From: laodaming <11058467+laudamine@user.noreply.gitee.com> Date: Tue, 11 Jul 2023 19:29:20 +0800 Subject: [PATCH] fix --- server/product/internal/types/types.go | 2 +- server_api/product.api | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 {