mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-22 09:30:14 +01:00
This commit is contained in:
parent
3919eccb90
commit
86f31a5d21
4 changed files with 9 additions and 17 deletions
|
|
@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue