perf(web): add pagination
and remove getting total quotes count
This commit is contained in:
@@ -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"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user