ENCOA-276, ENCOA-277
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
from enum import Enum
|
||||
from pydantic import BaseModel, Field
|
||||
from typing import List, Union, Optional, Literal
|
||||
from typing import List, Union, Optional, Literal, Any
|
||||
from uuid import uuid4, UUID
|
||||
|
||||
from ielts_be.dtos.listening import Dialog
|
||||
|
||||
|
||||
class ExerciseBase(BaseModel):
|
||||
id: UUID = Field(default_factory=uuid4)
|
||||
@@ -81,6 +83,7 @@ ListeningExercise = Union[
|
||||
|
||||
class ListeningSection(BaseModel):
|
||||
exercises: List[ListeningExercise]
|
||||
script: Optional[Union[List[Any] | str]] = None
|
||||
|
||||
|
||||
class ListeningExam(BaseModel):
|
||||
|
||||
Reference in New Issue
Block a user