perf(web): add pagination

and remove getting total quotes count
This commit is contained in:
2025-01-07 04:04:06 +03:00
parent 65152526b7
commit 8b417dc623
5 changed files with 51 additions and 60 deletions
+12
View File
@@ -27,3 +27,15 @@ type Quote struct {
Datetime time.Time `json:"datetime"`
Creator User `json:"creator"`
}
type Pagination struct {
TotalCount int `json:"totalCount"`
Offset int `json:"offset"`
Limit int `json:"limit"`
Count int `json:"count"`
}
type Quotes struct {
Pagination Pagination `json:"pagination"`
Quotes []Quote `json:"quotes"`
}