feat:更新数据表结构

This commit is contained in:
2026-08-09 14:02:20 +08:00
parent 0760f53cc6
commit 2f4fa66190
15 changed files with 270 additions and 211 deletions

28
schemas/record.py Normal file
View File

@@ -0,0 +1,28 @@
from typing import List
from pydantic import BaseModel
class RecordRequest(BaseModel):
type: str
totalCount: int
correctCount: int
wrongCount: int
class RecordResponse(RecordRequest):
id: int
createTime: str
class Config:
from_attributes = True
class CheckResult(BaseModel):
id: int
answer: List[str]
select: List[str]
isCorrect: bool
class Config:
from_attributes = True