feat: residues accounting

This commit is contained in:
2025-01-14 21:35:39 +04:00
parent 1f26f94d96
commit d609c10edb
15 changed files with 776 additions and 10 deletions

View File

@@ -16,8 +16,6 @@ client_router = APIRouter(
)
@client_router.get('/search', operation_id='search_clients')
async def search_clients(
name: str,
@@ -52,6 +50,18 @@ async def get_all_clients(
return await ClientService(session).get_all()
@client_router.get(
'/get/{client_id}',
operation_id='get_client',
response_model=ClientGetResponse
)
async def get_client(
session: Annotated[AsyncSession, Depends(get_session)],
client_id: int,
):
return await ClientService(session).get_by_id(client_id)
@client_router.post(
'/create',
operation_id='create_client_api',