Files
SST/PythonProject/schema/teacher_schema.py
T

18 lines
306 B
Python
Raw Normal View History

2026-09-21 16:12:50 +08:00
from pydantic import BaseModel
2026-09-21 20:00:35 +08:00
2026-09-21 11:10:38 +08:00
class Teacher_RequestModel(BaseModel):
teac_name:str
teac_gender:str
teac_age:int
teac_position:str
2026-09-21 11:34:23 +08:00
2026-09-21 11:26:13 +08:00
class Teacher_ResponseModel(BaseModel):
code:int=200
detail:str='OK!'
teac_name:str
2026-09-21 20:00:35 +08:00
teac_gender:str
teac_age:int
teac_position:str
2026-09-21 11:10:38 +08:00