feat:更新练习题接口
This commit is contained in:
@@ -3,8 +3,7 @@ from typing import List
|
||||
from pydantic import BaseModel
|
||||
|
||||
|
||||
class MistakeResponse(BaseModel):
|
||||
id: int
|
||||
class MistakeRequest(BaseModel):
|
||||
subject: str
|
||||
module: str
|
||||
name: str
|
||||
@@ -12,7 +11,13 @@ class MistakeResponse(BaseModel):
|
||||
question: str
|
||||
options: List[str]
|
||||
answer: List[str]
|
||||
wrongCount: int
|
||||
|
||||
class Config:
|
||||
from_attributes = True
|
||||
|
||||
|
||||
class MistakeResponse(MistakeRequest):
|
||||
id: int
|
||||
|
||||
class Config:
|
||||
from_attributes = True
|
||||
|
||||
Reference in New Issue
Block a user