更新debug
This commit is contained in:
@@ -93,7 +93,7 @@ def delete_stuinfo( #删除模块
|
||||
): #根据id选择对象
|
||||
rows = delete_emp_dao(id, db) #调用删除函数
|
||||
if not rows:
|
||||
raise HTTPException(status_code=500, detail='没有删除!') #失败返回错误信息
|
||||
raise HTTPException(status_code=404, detail='未找到该就业记录!') #失败返回错误信息
|
||||
return {'code': 200, 'totals': rows, 'detail': '删除成功'} #成功返回信息
|
||||
|
||||
'''
|
||||
|
||||
Reference in New Issue
Block a user