ch9.7
This commit is contained in:
@@ -38,3 +38,11 @@ func (f Filters) sortDirection() string {
|
||||
}
|
||||
return "ASC"
|
||||
}
|
||||
|
||||
func (f Filters) limit() int {
|
||||
return f.PageSize
|
||||
}
|
||||
|
||||
func (f Filters) offset() int {
|
||||
return (f.Page - 1) * f.PageSize
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user