feat: ЛР5 - асинхронная обработка вложений, RabbitMQ и transactional outbox

This commit is contained in:
Ильяс
2026-11-20 17:03:59 +03:00
parent 7cfc6d40a6
commit 7d06ecf230
27 changed files with 1536 additions and 103 deletions
+2 -2
View File
@@ -21,7 +21,7 @@ def validate_uuid(value: str, field_name: str = "id") -> str:
@router.post(
"/api/v1/chats/{chat_id}/attachments",
response_model=AttachmentResponse,
status_code=status.HTTP_201_CREATED,
status_code=status.HTTP_202_ACCEPTED,
)
async def upload_attachment(
chat_id: str,
@@ -66,7 +66,7 @@ async def get_attachment_metadata(
)
async def download_attachment_content(
attachment_id: str,
variant: str | None = Query(default=None),
variant: str = Query(default="original"),
current_user: UserResponse = Depends(get_current_user),
) -> Response:
"""Скачивание бинарного содержимого вложения."""