Changes to endpoints so they allow to only get context and then the exercises as well as tidying up a bit
This commit is contained in:
19
app/dtos/level.py
Normal file
19
app/dtos/level.py
Normal file
@@ -0,0 +1,19 @@
|
||||
from typing import List, Optional
|
||||
|
||||
from pydantic import BaseModel
|
||||
|
||||
from app.configs.constants import LevelExerciseType
|
||||
|
||||
|
||||
class LevelExercises(BaseModel):
|
||||
type: LevelExerciseType
|
||||
quantity: int
|
||||
text_size: Optional[int]
|
||||
sa_qty: Optional[int]
|
||||
mc_qty: Optional[int]
|
||||
topic: Optional[str]
|
||||
|
||||
class LevelExercisesDTO(BaseModel):
|
||||
text: str
|
||||
exercises: List[LevelExercises]
|
||||
difficulty: Optional[str]
|
||||
Reference in New Issue
Block a user