feat: chats list on the left of the client chat

This commit is contained in:
2025-04-16 13:57:29 +04:00
parent 68f94cc9a4
commit 4303f679b5
3 changed files with 59 additions and 3 deletions

View File

@@ -91,6 +91,18 @@ async def get_chat(
return await ChatService(session).get_chat(request)
@chat_router.get(
'/for-client/{client_id}',
operation_id='get_client_chats_list',
response_model=GetChatsListResponse,
)
async def get_client_chats_list(
session: Annotated[AsyncSession, Depends(get_session)],
client_id: int,
):
return await ChatService(session).get_client_chats_list(client_id)
@chat_router.post(
'/create',
operation_id='create_chat',