修改了页码
This commit is contained in:
parent
e59343e579
commit
653065ad7d
@ -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)
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user