Merge branch 'dev'

This commit is contained in:
wucongxing8150 2025-04-16 15:46:21 +08:00
commit 6fc60bc333

View File

@ -176,6 +176,9 @@ func (b *Res) GetResCaseRecordList(c *gin.Context) {
}
pageSize := 100
if config.C.Env == "dev" {
pageSize = 2
}
// 获取数据
caseUserDao := dao.CaseUserDao{}
@ -346,10 +349,12 @@ 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["total"] = total
result["data"] = g
responses.OkWithData(result, c)
}