feat:增加训练场和错题集接口

This commit is contained in:
2026-07-29 19:51:02 +08:00
parent 613eed541f
commit 0bcd749d27
9 changed files with 314 additions and 16 deletions

18
schemas/mistake.py Normal file
View File

@@ -0,0 +1,18 @@
from typing import List
from pydantic import BaseModel
class MistakeResponse(BaseModel):
id: int
subject: str
module: str
name: str
type: str
question: str
options: List[str]
answer: List[str]
wrongCount: int
class Config:
from_attributes = True