15 lines
525 B
Python
15 lines
525 B
Python
from typing import Annotated
|
|
|
|
from fastapi import Depends
|
|
from sqlalchemy.ext.asyncio import AsyncSession
|
|
|
|
from backend.session import get_session
|
|
from models import User
|
|
from schemas.base import PaginationSchema
|
|
from services.auth import get_current_user
|
|
from utils.dependecies import pagination_parameters
|
|
|
|
SessionDependency = Annotated[AsyncSession, Depends(get_session)]
|
|
PaginationDependency = Annotated[PaginationSchema, Depends(pagination_parameters)]
|
|
CurrentUserDependency = Annotated[User, Depends(get_current_user)]
|