Merge remote-tracking branch 'origin/conding' into conding

# Conflicts:
#	PythonProject/main.py
This commit is contained in:
he
2026-09-21 16:55:09 +08:00
6 changed files with 99 additions and 22 deletions
+9 -5
View File
@@ -1,12 +1,13 @@
from fastapi import Query,HTTPException
from pydantic import BaseModel, field_validator
from datetime import datetime
from datetime import date
from typing import Optional
class EmlpoymentRequest(BaseModel):
stu_id: int=Query(ge=1)
email: str|None
employment_opening_date:datetime
offer_issuance_date:datetime
employment_opening_date:date
offer_issuance_date:date
company_name:str
company_address:str|None
salary:float
@@ -21,10 +22,13 @@ class EmlpoymentRequest(BaseModel):
class EmploymentResponse(BaseModel):
code:int = 200
detail:str = 'OK'
emp_id:int
stu_id: int
stu_name:Optional[str] = None
class_id:int
email: str | None
employment_opening_date: datetime
offer_issuance_date: datetime
employment_opening_date: date
offer_issuance_date: date
company_name: str
company_address: str | None
salary: float