This commit is contained in:
lbenedar
2026-03-18 18:00:18 +03:00
parent a309576cfb
commit 95d46644e0
2 changed files with 11 additions and 2 deletions

View File

@@ -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
}