Improve pagination (#105)
This commit is contained in:
parent
89f385a53d
commit
8948a5f219
97 changed files with 2137 additions and 529 deletions
|
|
@ -27,7 +27,7 @@ You can feed this function directly into xorm's `Limit`-Function like so:
|
|||
|
||||
{{< highlight golang >}}
|
||||
lists := []List{}
|
||||
err := x.Limit(getLimitFromPageIndex(pageIndex)).Find(&lists)
|
||||
err := x.Limit(getLimitFromPageIndex(pageIndex, itemsPerPage)).Find(&lists)
|
||||
{{< /highlight >}}
|
||||
|
||||
// TODO: Add a full example from start to finish, like a tutorial on how to create a new endpoint?
|
||||
|
|
|
|||
Reference in a new issue