Compare commits
5 Commits
21ecde024e
...
6fc60bc333
| Author | SHA1 | Date | |
|---|---|---|---|
| 6fc60bc333 | |||
| f54e6a337b | |||
| 91ca7a4995 | |||
| 1ac98ab0a9 | |||
| 653065ad7d |
@ -176,6 +176,9 @@ func (b *Res) GetResCaseRecordList(c *gin.Context) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pageSize := 100
|
pageSize := 100
|
||||||
|
if config.C.Env == "dev" {
|
||||||
|
pageSize = 2
|
||||||
|
}
|
||||||
|
|
||||||
// 获取数据
|
// 获取数据
|
||||||
caseUserDao := dao.CaseUserDao{}
|
caseUserDao := dao.CaseUserDao{}
|
||||||
@ -346,10 +349,12 @@ func (b *Res) GetResCaseRecordList(c *gin.Context) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
result := make(map[string]interface{})
|
result := make(map[string]interface{})
|
||||||
|
|
||||||
result["pindex"] = page
|
result["pindex"] = page
|
||||||
result["psize"] = pageSize
|
result["psize"] = pageSize
|
||||||
result["ptotal"] = int(math.Ceil(float64(total) / float64(pageSize)))
|
result["ptotal"] = int(math.Ceil(float64(total) / float64(pageSize)))
|
||||||
result["ctotal"] = total
|
result["ctotal"] = len(g)
|
||||||
|
result["total"] = total
|
||||||
result["data"] = g
|
result["data"] = g
|
||||||
responses.OkWithData(result, c)
|
responses.OkWithData(result, c)
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user