From dd5b2b660e31db6963b1cba3105d27633f21cae2 Mon Sep 17 00:00:00 2001 From: zjy Date: Thu, 17 Jul 2025 12:09:44 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E5=A4=84=E7=90=86=E5=88=86=E9=A1=B5?= =?UTF-8?q?=E7=BB=93=E6=9E=84=E4=BD=93PerPage=E7=9A=84json=E5=88=AB?= =?UTF-8?q?=E5=90=8DpageSize=20=E6=97=A0=E6=B3=95=E8=A2=AB=E9=AA=8C?= =?UTF-8?q?=E8=AF=81=E5=AF=BC=E8=87=B4=20pageSize=E4=BC=A00=E4=B9=9F?= =?UTF-8?q?=E8=83=BD=E6=AD=A3=E5=B8=B8=E8=AE=BF=E9=97=AE=E8=80=8C=E5=AF=BC?= =?UTF-8?q?=E8=87=B4=E6=95=B0=E6=8D=AE=E5=BA=93=E6=97=A0=E5=88=86=E9=A1=B5?= =?UTF-8?q?=E6=8B=89=E7=88=86=E6=95=B0=E6=8D=AE=E5=BA=93=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/internal/model/input/form/page.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/internal/model/input/form/page.go b/server/internal/model/input/form/page.go index 63cd8d3..a46e09e 100644 --- a/server/internal/model/input/form/page.go +++ b/server/internal/model/input/form/page.go @@ -17,7 +17,7 @@ type ReqPageFunc interface { // PageReq 分页请求 type PageReq struct { Page int `json:"page" example:"10" d:"1" v:"page@min:1#页码最小值不能低于1" dc:"当前页码"` - PerPage int `json:"pageSize" example:"1" d:"10" v:"pageSize@min:1|max:200#每页数量最小值不能低于1|最大值不能大于200" dc:"每页数量"` + PerPage int `json:"pageSize" example:"1" d:"10" v:"pageSize@min:1|max:200#每页数量最小值不能低于1|每页数量最大值不能大于200" dc:"每页数量"` Pagination bool `json:"pagination" d:"true" dc:"是否需要进行分页"` }