mirror of
https://github.com/langgenius/dify.git
synced 2026-09-03 06:53:26 +08:00
12 lines
391 B
Python
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: ...
|