This commit is contained in:
Liang Ding 2022-06-14 11:38:36 +08:00
parent 3919eccb90
commit 86f31a5d21
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
4 changed files with 9 additions and 17 deletions

View file

@ -55,14 +55,16 @@ func getRepoIndexLogs(c *gin.Context) {
}
page := arg["page"].(float64)
logs, err := model.GetRepoIndexLogs(int(page))
logs, pageCount, totalCount, err := model.GetRepoIndexLogs(int(page))
if nil != err {
ret.Code = -1
ret.Msg = err.Error()
return
}
ret.Data = map[string]interface{}{
"logs": logs,
"logs": logs,
"pageCount": pageCount,
"totalCount": totalCount,
}
}