修改了get方法返回值

This commit is contained in:
zhangjun
2026-09-19 14:55:54 +08:00
parent a667a3a43a
commit 44c5b040d8
2 changed files with 1 additions and 2 deletions
-1
View File
@@ -9,4 +9,3 @@ app.include_router(order_api,tags=['订单接口'],prefix='/orders')
if __name__ == '__main__':
import uvicorn
uvicorn.run(app,host='127.0.2.2',port=12355)
+1 -1
View File
@@ -28,7 +28,7 @@ def get_orders(order_title:str,db=Depends(get_db)):
r = get_orders_dao(order_title,db)
if r:
return r
return
return '获取信息成功'
@order_api.delete('/{id}')
def delete_orders(id:int,db=Depends(get_db)):