feat: deal status history table

This commit is contained in:
2025-09-20 10:07:56 +04:00
parent 44f315b4a0
commit 6b3d124adf
8 changed files with 45 additions and 7 deletions

View File

@ -54,3 +54,15 @@ async def delete_status(
pk: int = Path(),
):
return await StatusService(session).delete(pk)
@router.get(
"/history/{dealId}",
response_model=GetStatusHistoryResponse,
operation_id="get_status_history",
)
async def get_status_history(
session: SessionDependency,
deal_id: int = Path(alias="dealId"),
):
return await StatusService(session).get_status_history(deal_id)