第四版_完整
This commit is contained in:
+1
-1
@@ -95,7 +95,7 @@ async def create_student(
|
||||
new_student = StudentDao.create(db, student_dict)
|
||||
except Exception:
|
||||
db.rollback()
|
||||
raise HTTPException(status_code=400, detail="网络卡顿或有其他人同步上传,请重试")
|
||||
raise HTTPException(status_code=400, detail="数据异常,请重试")
|
||||
return new_student
|
||||
#============= 修改 ============
|
||||
@router.put("/{stu_id}", response_model=StudentResponse,summary="通过ID查找修改学生信息")
|
||||
|
||||
Reference in New Issue
Block a user