from fastapi import Query, Request
from pydantic import BaseModel


class PaginationParams(BaseModel):
    request: Request
    limit: int = Query(default=20, ge=0)
    offset: int = Query(default=0, ge=0)

    class Config:
        arbitrary_types_allowed = True
