修改了页码

This commit is contained in:
wucongxing8150 2025-04-14 17:28:27 +08:00
parent e59343e579
commit 653065ad7d

View File

@ -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)
}