Merge branch 'dev'
This commit is contained in:
commit
6fc60bc333
@ -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