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 1/4] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BA=86=E9=A1=B5?= =?UTF-8?q?=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) } From 1ac98ab0a99f5df35ed3fb052b7f026a90aab0fc Mon Sep 17 00:00:00 2001 From: wucongxing8150 <815046773@qq.com> Date: Mon, 14 Apr 2025 17:30:57 +0800 Subject: [PATCH 2/4] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BA=86=E9=A1=B5?= =?UTF-8?q?=E7=A0=811?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/controller/Res.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/api/controller/Res.go b/api/controller/Res.go index ea3a725..89832c2 100644 --- a/api/controller/Res.go +++ b/api/controller/Res.go @@ -176,6 +176,9 @@ func (b *Res) GetResCaseRecordList(c *gin.Context) { } pageSize := 100 + if config.C.Env == "dev" { + pageSize = 10 + } // 获取数据 caseUserDao := dao.CaseUserDao{} From 91ca7a499596b7e6a048ef7057c3b4b13d74fb7c Mon Sep 17 00:00:00 2001 From: wucongxing8150 <815046773@qq.com> Date: Mon, 14 Apr 2025 17:39:01 +0800 Subject: [PATCH 3/4] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BA=86=E9=A1=B5?= =?UTF-8?q?=E7=A0=813?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/controller/Res.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/controller/Res.go b/api/controller/Res.go index 89832c2..6c8255a 100644 --- a/api/controller/Res.go +++ b/api/controller/Res.go @@ -177,7 +177,7 @@ func (b *Res) GetResCaseRecordList(c *gin.Context) { pageSize := 100 if config.C.Env == "dev" { - pageSize = 10 + pageSize = 2 } // 获取数据 From f54e6a337b77f4974c8d98d2cb12837c5493e321 Mon Sep 17 00:00:00 2001 From: wucongxing8150 <815046773@qq.com> Date: Mon, 14 Apr 2025 17:43:06 +0800 Subject: [PATCH 4/4] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BA=86=E9=A1=B5?= =?UTF-8?q?=E7=A0=814?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/controller/Res.go | 1 + 1 file changed, 1 insertion(+) diff --git a/api/controller/Res.go b/api/controller/Res.go index 6c8255a..175f026 100644 --- a/api/controller/Res.go +++ b/api/controller/Res.go @@ -354,6 +354,7 @@ func (b *Res) GetResCaseRecordList(c *gin.Context) { result["psize"] = pageSize result["ptotal"] = int(math.Ceil(float64(total) / float64(pageSize))) result["ctotal"] = len(g) + result["total"] = total result["data"] = g responses.OkWithData(result, c) }