diff --git a/backend/models/objects.go b/backend/models/objects.go index 74e8513..5fe5f85 100644 --- a/backend/models/objects.go +++ b/backend/models/objects.go @@ -57,3 +57,15 @@ type Session struct { ExpiresAt time.Time `json:"expires_at"` LastActivity time.Time `json:"last_activity"` } + +type Pagination struct { + Total int `json:"total"` + Offset int `json:"offset"` + Limit int `json:"limit"` + Count int `json:"count"` +} + +type Slice[T any] struct { + Pagination Pagination `json:"pagination"` + Data []T `json:"data"` +}