feat:增加考试接口
This commit is contained in:
16
schemas/exam.py
Normal file
16
schemas/exam.py
Normal file
@@ -0,0 +1,16 @@
|
||||
from pydantic import BaseModel
|
||||
|
||||
|
||||
class ExamRecordRequest(BaseModel):
|
||||
subject: str
|
||||
totalCount: int
|
||||
correctCount: int
|
||||
wrongCount: int
|
||||
|
||||
|
||||
class ExamRecordResponse(ExamRecordRequest):
|
||||
id: int
|
||||
createTime: str
|
||||
|
||||
class Config:
|
||||
from_attributes = True
|
||||
Reference in New Issue
Block a user