From b31b3f055cbdbb9aa55a8c2cee0d8460d1256633 Mon Sep 17 00:00:00 2001 From: test1 Date: Tue, 22 Sep 2026 10:06:35 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A9=AC=E7=9D=BF=E6=99=BA=E7=89=9B=E9=80=BC?= =?UTF-8?q?=EF=BC=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- PythonProject/api/teacher_api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PythonProject/api/teacher_api.py b/PythonProject/api/teacher_api.py index c35169c..95f2dad 100644 --- a/PythonProject/api/teacher_api.py +++ b/PythonProject/api/teacher_api.py @@ -33,7 +33,7 @@ def update_teacher1(t_id:int,teacher:Teacher_RequestModel,session=Depends(get_db r=update_teacher(id=t_id,req=d,session=session) if not r: raise HTTPException(status_code=500, detail='更新异常!') - return {'code':200,'detail':'cg'} + return {'code':200,'detail':'更新成功!','data':teacher} @teacher_api.delete("/teachers/{t_id}",tags=['教师基本信息管理模块'],summary='删除教师接口') @@ -41,4 +41,4 @@ def delete_teacher1(t_id:int,session=Depends(get_db)): r=delete_teacher(id=t_id,session=session) if not r: raise HTTPException(status_code=500,detail='删除异常!') - return {'code': 200, 'detail':'成功!'} \ No newline at end of file + return {'code': 200, 'detail':'删除成功!'} \ No newline at end of file