From 653065ad7d54ca409c234d3733820838f6dc0ec7 Mon Sep 17 00:00:00 2001 From: wucongxing8150 <815046773@qq.com> Date: Mon, 14 Apr 2025 17:28:27 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BA=86=E9=A1=B5=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/controller/Res.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api/controller/Res.go b/api/controller/Res.go index d929abd..ea3a725 100644 --- a/api/controller/Res.go +++ b/api/controller/Res.go @@ -346,10 +346,11 @@ func (b *Res) GetResCaseRecordList(c *gin.Context) { } result := make(map[string]interface{}) + result["pindex"] = page result["psize"] = pageSize result["ptotal"] = int(math.Ceil(float64(total) / float64(pageSize))) - result["ctotal"] = total + result["ctotal"] = len(g) result["data"] = g responses.OkWithData(result, c) }