14 lines
393 B
Python
14 lines
393 B
Python
|
|
"""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)
|