From dd78911ed94a519ad80faf0d05c33c52fb043ae1 Mon Sep 17 00:00:00 2001 From: lejianwen <84855512@qq.com> Date: Tue, 6 May 2025 19:08:18 +0800 Subject: [PATCH] fix: PageSize (#225) --- http/request/api/user.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/http/request/api/user.go b/http/request/api/user.go index 1225348..b1a0d97 100644 --- a/http/request/api/user.go +++ b/http/request/api/user.go @@ -40,14 +40,14 @@ type LoginForm struct { type UserListQuery struct { Page uint `json:"page" form:"page" validate:"required" label:"页码"` - PageSize uint `json:"page_size" form:"page_size" validate:"required" label:"每页数量"` + PageSize uint `json:"pageSize" form:"pageSize" validate:"required" label:"每页数量"` Status int `json:"status" form:"status" label:"状态"` Accessible string `json:"accessible" form:"accessible"` } type PeerListQuery struct { Page uint `json:"page" form:"page" validate:"required" label:"页码"` - PageSize uint `json:"page_size" form:"page_size" validate:"required" label:"每页数量"` + PageSize uint `json:"pageSize" form:"pageSize" validate:"required" label:"每页数量"` Status int `json:"status" form:"status" label:"状态"` Accessible string `json:"accessible" form:"accessible"` }