This commit is contained in:
he
2026-09-21 12:24:56 +08:00
parent 46a707c5b0
commit a469461f88
3 changed files with 19 additions and 0 deletions
+9
View File
@@ -0,0 +1,9 @@
from fastapi import APIRouter,Depends,HTTPException,Path
from util.database import get_db
from model.student_model import Student_Model
gradeAPI = APIRouter()
@gradeAPI.get(f"/grade/{id}",summary="根据ID查询单条成绩")
def get_grade(id:int,db=Depends(get_db)):
r =db.