dify/api/services/partner_tenant_binding_service.py
非法操作 ed45016475
refactor(api): standardize console billing portal errors (#41055)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-08-24 01:55:48 +00:00

13 lines
452 B
Python

"""Application service for partner tenant bindings."""
from collections.abc import Callable
from typing import Any
class PartnerTenantBindingService:
def __init__(self, *, sync_bindings: Callable[[str, str, str], dict[str, Any]]) -> None:
self._sync_bindings = sync_bindings
def sync(self, *, account_id: str, partner_key: str, click_id: str) -> dict[str, Any]:
return self._sync_bindings(account_id, partner_key, click_id)