feat:增加考试接口

This commit is contained in:
2026-08-03 22:43:09 +08:00
parent e84f4e7e18
commit 0760f53cc6
6 changed files with 68 additions and 12 deletions

16
schemas/exam.py Normal file
View 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