feat:更新练习题接口
This commit is contained in:
@@ -2,8 +2,6 @@ from typing import List
|
||||
|
||||
from pydantic import BaseModel
|
||||
|
||||
from schemas.library import QuestionRequest
|
||||
|
||||
|
||||
class PracticeRecordRequest(BaseModel):
|
||||
libraryFileId: int
|
||||
@@ -20,14 +18,6 @@ class PracticeRecordResponse(PracticeRecordRequest):
|
||||
from_attributes = True
|
||||
|
||||
|
||||
class PracticeQuestionResponse(QuestionRequest):
|
||||
id: int
|
||||
select: List[str]
|
||||
|
||||
class Config:
|
||||
from_attributes = True
|
||||
|
||||
|
||||
class PracticeCheckResult(BaseModel):
|
||||
id: int
|
||||
answer: List[str]
|
||||
@@ -35,4 +25,4 @@ class PracticeCheckResult(BaseModel):
|
||||
isCorrect: bool
|
||||
|
||||
class Config:
|
||||
from_attributes = True
|
||||
from_attributes = True
|
||||
|
||||
Reference in New Issue
Block a user