Merge branch 'main' of gitlab.prodcontest.com:team-39/backend

* 'main' of gitlab.prodcontest.com:team-39/backend:
  feat(): proper type annotation for resume routes
This commit is contained in:
ITQ
2025-11-21 22:59:24 +03:00
@@ -1,5 +1,6 @@
from decimal import Decimal
from enum import StrEnum
from typing import Annotated
from dishka.integrations.fastapi import DishkaRoute
from fastapi import APIRouter, Depends, Query
@@ -204,8 +205,8 @@ async def get_resume(
},
)
async def get_resume_list(
limit: int = Query(..., ge=1, le=100, description="Number of resumes to return", examples=[10]),
offset: int = Query(..., ge=0, description="Number of resumes to skip", examples=[0]),
limit: Annotated[int, Query(ge=1, le=100, description="Number of resumes to return", examples=[10])],
offset: Annotated[int, Query(ge=0, description="Number of resumes to skip", examples=[0])],
) -> GetResumeListResponse:
# TODO: Implement resume list retrieval
raise NotImplementedError
@@ -267,8 +268,8 @@ class PatchResumeResponse(BaseModel):
)
async def get_resume_history(
resume_id: str,
limit: int = Query(..., ge=1, le=100, description="Number of history items to return", examples=[10]),
offset: int = Query(..., ge=0, description="Number of history items to skip", examples=[0]),
limit: Annotated[int, Query(ge=1, le=100, description="Number of history items to return", examples=[10])],
offset: Annotated[int, Query(ge=0, description="Number of history items to skip", examples=[0])],
) -> GetResumeHistoryResponse:
# TODO: Implement resume history retrieval
raise NotImplementedError