Fix typos in models/ and modules/ (#1248)
This commit is contained in:
parent
ec0ae5d50c
commit
021904e4e6
26 changed files with 63 additions and 63 deletions
|
@ -43,7 +43,7 @@ func (ctx *APIContext) Error(status int, title string, obj interface{}) {
|
|||
})
|
||||
}
|
||||
|
||||
// SetLinkHeader sets pagination link header by given totol number and page size.
|
||||
// SetLinkHeader sets pagination link header by given total number and page size.
|
||||
func (ctx *APIContext) SetLinkHeader(total, pageSize int) {
|
||||
page := paginater.New(total, pageSize, ctx.QueryInt("page"), 0)
|
||||
links := make([]string, 0, 4)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue