dify/api/services/entities/mail_entities.py
Byron.wang c4ea406586
refactor(api): decouple system features and web adapters (#40772)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-09-01 11:50:52 +00:00

13 lines
298 B
Python

"""Framework-neutral data contracts for internal mail delivery."""
from dataclasses import dataclass
from typing import Any
@dataclass(frozen=True, slots=True)
class InnerMailMessage:
recipients: tuple[str, ...]
subject: str
body: str
substitutions: dict[str, Any] | None = None