修改put和delete的路径参数为stu_id

This commit is contained in:
2026-09-22 23:17:02 +08:00
parent e6e3adb82b
commit cb5132c0b9
2 changed files with 11 additions and 3 deletions
+1 -1
View File
@@ -3,7 +3,7 @@ from datetime import date
from typing import Optional
class EmploymentRequest(BaseModel):
stu_id: int=Field(ge=1,description='学生编号')
stu_id: int=Field(ge=1, description='学生编号')
email: Optional[str] = Field(None, description='邮箱')
employment_opening_date:Optional[date] = Field(None, description='就业开放日期')
offer_issuance_date:Optional[date] = Field(None, description='offer下发日期')