第四版_完整
This commit is contained in:
@@ -9,7 +9,7 @@ class StudentCreate(BaseModel):
|
||||
name: str = Field(..., min_length=1, max_length=20, description="姓名")
|
||||
gender: str = Field(..., min_length=1, max_length=1, description="性别")
|
||||
age: int = Field(..., ge=1, le=100, description="年龄")
|
||||
hometown: Optional[str] = Field(None, min_length=3, max_length=50, description="籍贯")
|
||||
hometown: Optional[str] = Field(None, min_length=1, max_length=50, description="籍贯")
|
||||
grad_school: str = Field(..., min_length=1, max_length=50, description="毕业院校")
|
||||
major: str = Field(..., min_length=1, max_length=50, description="专业名称")
|
||||
education: str = Field(..., min_length=1, max_length=20, description="学历")
|
||||
|
||||
Reference in New Issue
Block a user