feat:更新数据表结构
This commit is contained in:
28
schemas/record.py
Normal file
28
schemas/record.py
Normal 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
|
||||
Reference in New Issue
Block a user