新增启动时插入数据模块,新增前端页面接口,students模块更新README_students.md模块解释说明,主程序main.py更新数据模块接口。

This commit is contained in:
Orangeeee
2026-09-23 01:03:00 +08:00
parent a4a55a9858
commit 642b70dd1c
6 changed files with 2326 additions and 5 deletions
+2 -2
View File
@@ -30,7 +30,7 @@ class Students(Base_all):
, comment='年龄'
, nullable=False)
sex = Column(Enum(SexEnum)
sex = Column(Enum(SexEnum, values_callable=lambda e: [i.value for i in e])
, comment='性别'
, nullable=False)
@@ -49,7 +49,7 @@ class Students(Base_all):
graduate_time = Column(DATETIME
, comment='毕业时间')
education = Column(Enum(EducationEnum)
education = Column(Enum(EducationEnum, values_callable=lambda e: [i.value for i in e])
, comment='学历'
, nullable=True)