35 lines
533 B
Python
35 lines
533 B
Python
from datetime import date
|
|||
|
|
from pydantic import BaseModel
|
||
|
|
from sqlalchemy import DATETIME
|
||
|
|
|
||
|
|
class claRequest(BaseModel):
|
||
|
|
|
||
|
|
class_name : str|None = None
|
||
|
|
|
||
|
|
start_class_date :date
|
||
|
|
|
||
|
|
head_teacher_id : int|None = None
|
||
|
|
|
||
|
|
class_teacher_id : int|None = None
|
||
|
|
|
||
|
|
Entry_date : DATETIME
|
||
|
|
|
||
|
|
update_date : DATETIME
|
||
|
|
|
||
|
|
delete_status : int|None = None
|
||
|
|
|
||
|
|
delete_time : DATETIME
|
||
|
|
|
||
|
|
class claResponse(BaseModel):
|
||
|
|
|
||
|
|
code:int = 200
|
||
|
|
|
||
|
|
detail:str = 'ok'
|
||
|
|
|
||
|
|
class_name = str
|
||
|
|
|
||
|
|
head_teacher_id = int
|
||
|
|
|
||
|
|
class_teacher_id = int
|
||
|
|
|