From 3547a7eb2e9085b7bcb1de3c9455d742de5c6504 Mon Sep 17 00:00:00 2001 From: liruiqiang <3151805288@qq.com> Date: Wed, 25 Jun 2025 14:29:59 +0800 Subject: [PATCH] =?UTF-8?q?[lrq]=E6=AF=8F=E9=A1=B5=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E9=87=8F=E9=A9=BC=E5=B3=B0=E5=91=BD=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/vote/v1/vote.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/vote/v1/vote.go b/api/vote/v1/vote.go index c6b1644..d901d85 100644 --- a/api/vote/v1/vote.go +++ b/api/vote/v1/vote.go @@ -14,12 +14,12 @@ type VoteReq struct { DeadlineTime *gtime.Time `json:"deadlineTime" dc:"活动截止时间"` Status int `json:"status" dc:"投票活动状态"` Page int `p:"page" v:"required|integer|min:1#数据页不能为空|数据页只能是整数|数据页不能小于1" dc:"页数"` - PageSize int `p:"page_size" v:"integer|min:1#数据大小只能为整数|数据大小不能小于1" d:"20" dc:"每页数据量"` + PageSize int `p:"pageSize" v:"integer|min:1#数据大小只能为整数|数据大小不能小于1" d:"20" dc:"每页数据量"` } type VoteRes struct { Page int `json:"page" dc:"页数"` - PageSize int `json:"page_size" dc:"每页数据量"` + PageSize int `json:"pageSize" dc:"每页数据量"` Total int `json:"total" dc:"总记录数"` Rows []Vote `json:"rows" dc:"投票活动列表"` }