v1.7版本更新
This commit is contained in:
@@ -76,6 +76,7 @@ class AddStudentRequest(BaseModel):
|
||||
student_no: str = Field(..., min_length=1, max_length=20, pattern=r'^[a-zA-Z0-9]+$', description="学号")
|
||||
name: str = Field(..., min_length=1, max_length=50, description="姓名")
|
||||
parent_phone: Optional[str] = Field(None, max_length=11, pattern=r'^\d{0,11}$', description="家长手机号")
|
||||
dormitory_number: Optional[str] = Field(None, max_length=20, description="宿舍号")
|
||||
|
||||
|
||||
class AddAttendanceRequest(BaseModel):
|
||||
@@ -109,6 +110,7 @@ class UpdateStudentRequest(BaseModel):
|
||||
"""更新学生请求"""
|
||||
name: Optional[str] = Field(None, min_length=1, max_length=50, description="姓名")
|
||||
parent_phone: Optional[str] = Field(None, max_length=11, pattern=r'^\d{0,11}$', description="家长手机号")
|
||||
dormitory_number: Optional[str] = Field(None, max_length=20, description="宿舍号")
|
||||
|
||||
|
||||
class CreateAssignmentRequest(BaseModel):
|
||||
|
||||
Reference in New Issue
Block a user