From 44587213911e35be71cf02ad1f92a06baeecc1ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=B1=E6=96=87=E6=B5=A9?= <73766254+Rafael-ban@users.noreply.github.com> Date: Thu, 15 May 2025 21:10:35 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E8=BE=93=E5=87=BA=E7=BB=93?= =?UTF-8?q?=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- routes/admin.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/routes/admin.py b/routes/admin.py index 8bfa7a4..9bf006e 100644 --- a/routes/admin.py +++ b/routes/admin.py @@ -106,7 +106,7 @@ async def add_items( except Exception as e: raise HTTPException(status_code=500, detail=str(e)) else: - return DefaultResponse() + return DefaultResponse(data=True) @Router.patch( path='/items', @@ -151,7 +151,7 @@ async def update_items( except Exception as e: raise HTTPException(status_code=500, detail=str(e)) else: - return DefaultResponse() + return DefaultResponse(data=True) @Router.delete( path='/items', @@ -172,4 +172,4 @@ async def delete_items( except Exception as e: raise HTTPException(status_code=500, detail=str(e)) else: - return DefaultResponse() \ No newline at end of file + return DefaultResponse(data=True) \ No newline at end of file