From 232c33041846937775acba7e93e51f95fd7c1123 Mon Sep 17 00:00:00 2001 From: martsforever Date: Sat, 23 Aug 2025 14:24:01 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E8=BF=94=E5=9B=9E=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E4=BF=A1=E6=81=AF=E7=9A=84=E6=97=B6=E5=80=99=EF=BC=8C=E4=B8=80?= =?UTF-8?q?=E5=B9=B6=E6=9F=A5=E8=AF=A2=E8=81=8C=E4=BD=8D=E4=BB=A5=E5=8F=8A?= =?UTF-8?q?=E7=BB=84=E7=BB=87=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controller/add_user_route.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/app/controller/add_user_route.py b/app/controller/add_user_route.py index 77c4d40..d6514df 100644 --- a/app/controller/add_user_route.py +++ b/app/controller/add_user_route.py @@ -154,8 +154,11 @@ def add_user_route(app: FastAPI): # 获取用户信息接口 @app.get("/users/me") - async def _me(current_user: PublicUser = Depends(get_current_user)): - return current_user + async def _me(session: AsyncSessionDep, current_user: PublicUser = Depends(get_current_user)): + return await UserService.query_item( + session=session, + row_dict={"id": current_user.id}, + ) # 订单查询接口 @app.post("/order")