chain-service/chain_service/dependencies/progress_action_service_factory.py
2024-02-28 18:33:25 +07:00

17 lines
527 B
Python

from .planfix_client import PlanfixClientDependency
from chain_service.services.progress_action.factory import ProgressActionServiceFactory
from fastapi import Depends
from typing import Annotated
def get_progress_action_service_factory(
planfix_client: PlanfixClientDependency,
) -> ProgressActionServiceFactory:
return ProgressActionServiceFactory(planfix_client=planfix_client)
ProgressActionServiceFactoryDependency = Annotated[
ProgressActionServiceFactory, Depends(get_progress_action_service_factory)
]