dify/api/services/account_ports.py
Byron.wang b4e13ec83e
refactor(api): add account profile application service (#40436)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-08-20 05:03:08 +00:00

12 lines
391 B
Python

"""Persistence ports used by account application services."""
from typing import Protocol
from services.entities.account_entities import AccountProfileChanges, AccountSnapshot
class AccountRepository(Protocol):
def get(self, account_id: str) -> AccountSnapshot | None: ...
def update_profile(self, account_id: str, changes: AccountProfileChanges) -> AccountSnapshot | None: ...