数据库模型类名修改以及文件名修改

This commit is contained in:
maruizhi
2026-09-20 15:32:28 +08:00
parent 7f419fb8ad
commit 67e8f49c80
6 changed files with 60 additions and 11 deletions
+11
View File
@@ -0,0 +1,11 @@
from fastapi import APIRouter
from dao.student_dao import select_age
from schema.student_schema import StudentResponse
studentapi = APIRouter()
@studentapi.get("/age",response_model=StudentResponse,tags=['统计分析模块'],description='根据年龄查询学生信息')
def get_students(min_age:int|None=None,max_age:int|None=None):
l = select_age(min_age,max_age)
return [i for i in l]