update: uploads

This commit is contained in:
2026-03-06 15:52:34 +08:00
parent b1b14fd964
commit f9b9b821df
19 changed files with 1333 additions and 106 deletions

View File

@@ -103,6 +103,45 @@ class ImportHistoryOut(BaseModel):
from_attributes = True
class ImportJobItemOut(BaseModel):
id: int
job_id: int
seq: int
filename: str
stored_path: str
status: str
attempt: int
error: str
question_count: int
started_at: datetime | None
ended_at: datetime | None
class Config:
from_attributes = True
class ImportJobOut(BaseModel):
id: int
status: str
method: str
total: int
processed: int
success_count: int
failed_count: int
current_index: int
current_file: str
error: str
attempt: int
created_at: datetime
started_at: datetime | None
ended_at: datetime | None
updated_at: datetime
items: list[ImportJobItemOut] = []
class Config:
from_attributes = True
class PracticeStartRequest(BaseModel):
chapter: Optional[str] = None
secondary_knowledge: Optional[str] = None