11 lines
226 B
Python
11 lines
226 B
Python
from pydantic import BaseModel
|
|
from typing import Generic, TypeVar, List
|
|
|
|
T = TypeVar('T')
|
|
|
|
class PaginatedResponse(BaseModel, Generic[T]):
|
|
items: List[T]
|
|
total: int
|
|
page: int
|
|
per_page: int
|
|
total_pages: int |