feat: add import
This commit is contained in:
@@ -5,6 +5,8 @@ from fastapi import Depends
|
||||
from src.application.abstractions import IUnitOfWork
|
||||
from src.application.commands import (
|
||||
AdminLoginCommand,
|
||||
AdminLogoutCommand,
|
||||
AdminJwtRefreshCommand,
|
||||
GetAdminMeCommand,
|
||||
CreateOrganizationCommand,
|
||||
CreateOrganizationWalletsCommand,
|
||||
@@ -19,9 +21,10 @@ from src.application.commands import (
|
||||
UpdatePurchaseRequestStatusCommand,
|
||||
UploadOrganizationDocumentCommand,
|
||||
)
|
||||
from src.application.contracts import IHashService, IJwtService, ILogger
|
||||
from src.application.contracts import ICache, IHashService, IJwtService, ILogger
|
||||
from src.infrastructure.config import settings
|
||||
from src.infrastructure.storage.s3_documents_service import S3DocumentsService
|
||||
from src.presentation.dependencies.cache import get_cache
|
||||
from src.presentation.dependencies.logger import get_logger
|
||||
from src.presentation.dependencies.security import get_hash_service, get_jwt_service
|
||||
from src.presentation.dependencies.unit_of_work import get_unit_of_work
|
||||
@@ -60,6 +63,24 @@ def get_admin_me_command(
|
||||
return GetAdminMeCommand(uow, logger)
|
||||
|
||||
|
||||
def get_admin_logout_command(
|
||||
uow: IUnitOfWork = Depends(get_unit_of_work),
|
||||
jwt_service: IJwtService = Depends(get_jwt_service),
|
||||
logger: ILogger = Depends(get_logger),
|
||||
) -> AdminLogoutCommand:
|
||||
return AdminLogoutCommand(uow, jwt_service, logger)
|
||||
|
||||
|
||||
def get_admin_jwt_refresh_command(
|
||||
uow: IUnitOfWork = Depends(get_unit_of_work),
|
||||
hash_service: IHashService = Depends(get_hash_service),
|
||||
jwt_service: IJwtService = Depends(get_jwt_service),
|
||||
cache: ICache = Depends(get_cache),
|
||||
logger: ILogger = Depends(get_logger),
|
||||
) -> AdminJwtRefreshCommand:
|
||||
return AdminJwtRefreshCommand(uow, hash_service, jwt_service, cache, logger)
|
||||
|
||||
|
||||
def get_create_organization_command(
|
||||
uow: IUnitOfWork = Depends(get_unit_of_work),
|
||||
hash_service: IHashService = Depends(get_hash_service),
|
||||
|
||||
Reference in New Issue
Block a user