feat: add upload docs endpoint

This commit is contained in:
2026-06-25 23:09:58 +03:00
parent e85889eff8
commit bf8d778a9f
5 changed files with 33 additions and 7 deletions

View File

@@ -9,6 +9,7 @@ from src.application.commands import (
GetPurchaseRequestCommand,
ListOrganizationWalletsCommand,
ListPurchaseRequestsCommand,
UploadDocsCommand,
)
from src.application.contracts import ILogger, IQueueMessanger
from src.infrastructure.wallet_balances import WalletBalanceService
@@ -76,3 +77,10 @@ def get_get_organization_secret_keys_command(
unit_of_work: IUnitOfWork = Depends(get_unit_of_work),
) -> GetOrganizationSecretKeysCommand:
return GetOrganizationSecretKeysCommand(unit_of_work=unit_of_work, logger=logger)
def get_upload_docs_command(
logger: ILogger = Depends(get_logger),
unit_of_work: IUnitOfWork = Depends(get_unit_of_work),
messanger: IQueueMessanger = Depends(get_queue_messanger),
) -> UploadDocsCommand:
return UploadDocsCommand(unit_of_work=unit_of_work, logger=logger, messanger=messanger)