v0.6测试
This commit is contained in:
@@ -71,6 +71,13 @@ class UpdateHomeworkStatusRequest(BaseModel):
|
||||
apply_deduction: bool = False
|
||||
|
||||
|
||||
class AddStudentRequest(BaseModel):
|
||||
"""新增学生请求"""
|
||||
student_no: str = Field(..., min_length=1, max_length=20, description="学号")
|
||||
name: str = Field(..., min_length=1, max_length=50, description="姓名")
|
||||
parent_phone: Optional[str] = Field(None, max_length=11, description="家长手机号")
|
||||
|
||||
|
||||
class AddAttendanceRequest(BaseModel):
|
||||
"""添加考勤请求"""
|
||||
student_id: int
|
||||
|
||||
Reference in New Issue
Block a user