Merge branch 'refactor/backend-architecture' into development
This commit is contained in:
13
api/app/features/plan/deps.py
Normal file
13
api/app/features/plan/deps.py
Normal file
@@ -0,0 +1,13 @@
|
||||
"""Plan feature dependencies: get_plan_service."""
|
||||
|
||||
from fastapi import Depends
|
||||
|
||||
from app.features.plan.service import PlanService
|
||||
from app.features.quota.deps import get_quota_service
|
||||
from app.features.quota.service import QuotaService
|
||||
|
||||
|
||||
def get_plan_service(
|
||||
quota_service: QuotaService = Depends(get_quota_service),
|
||||
) -> PlanService:
|
||||
return PlanService(quota_service=quota_service)
|
||||
Reference in New Issue
Block a user