Compare commits
No commits in common. "6fc60bc333210a3974963bef82cd5f981c61643d" and "21ecde024ea6840b38e179a8b7ee2218c3331824" have entirely different histories.
6fc60bc333
...
21ecde024e
@ -176,9 +176,6 @@ func (b *Res) GetResCaseRecordList(c *gin.Context) {
|
||||
}
|
||||
|
||||
pageSize := 100
|
||||
if config.C.Env == "dev" {
|
||||
pageSize = 2
|
||||
}
|
||||
|
||||
// 获取数据
|
||||
caseUserDao := dao.CaseUserDao{}
|
||||
@ -349,12 +346,10 @@ 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"] = len(g)
|
||||
result["total"] = total
|
||||
result["ctotal"] = total
|
||||
result["data"] = g
|
||||
responses.OkWithData(result, c)
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user