17 lines
527 B
Python
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)
|
|
]
|