班级api,schema,dao
This commit is contained in:
@@ -3,6 +3,7 @@ from pydantic import BaseModel # 导入pydantic模块下的BaseModel
|
||||
from datetime import datetime,date # 导入datetime模块下的datetime,date类
|
||||
|
||||
|
||||
|
||||
# ————定义"创建班级"的"请求体"模型————
|
||||
class ClassCreate( BaseModel ): # "创建"班级信息的请求体模型
|
||||
class_no: str # 班级编号",不可为空
|
||||
|
||||
Reference in New Issue
Block a user