feat: deals table

This commit is contained in:
2024-08-10 06:53:10 +03:00
parent 2c9ff3b373
commit 1b46a0fc56
3 changed files with 47 additions and 6 deletions

View File

@@ -75,9 +75,10 @@ async def change_status(
dependencies=[Depends(authorized_user)]
)
async def get_summary(
session: Annotated[AsyncSession, Depends(get_session)]
session: Annotated[AsyncSession, Depends(get_session)],
full: Optional[bool]
):
return await DealService(session).get_summary()
return await DealService(session).get_summary(full)
@deal_router.post(