language-learning-app/api/app/domain/models/translated_article.py

18 lines
411 B
Python

from dataclasses import dataclass
from datetime import datetime
@dataclass
class TranslatedArticle:
id: str
published_at: datetime
source_language: str
source_title: str
source_body: str
target_language: str
target_complexities: list[str]
target_title: str
target_body: str
audio_url: str | None
target_body_pos: dict | None
target_body_transcript: dict | None