From b3f0755c79dc3413398937b7d6737160496d71e0 Mon Sep 17 00:00:00 2001 From: haotian <2421912570@qq.com> Date: Mon, 28 Jul 2025 11:04:08 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95=E6=8E=A5=E5=8F=A3=E7=99=BB?= =?UTF-8?q?=E5=BD=95=E9=AA=8C=E8=AF=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../module_admin/controller/test_controller.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ruoyi-fastapi-backend/module_admin/controller/test_controller.py b/ruoyi-fastapi-backend/module_admin/controller/test_controller.py index 8413c12..a5b73d0 100644 --- a/ruoyi-fastapi-backend/module_admin/controller/test_controller.py +++ b/ruoyi-fastapi-backend/module_admin/controller/test_controller.py @@ -24,7 +24,9 @@ async def hello(request: Request, user_name = await TestService.get_user_name(query_db,) return user_name -@testController.post('/hello_post_json', response_model=str) +@testController.post('/hello_post_json', response_model=str + ,dependencies=[Depends(LoginService.get_current_user)] + ) @Log(title='测试Log', business_type=BusinessType.OTHER, log_type='operation') async def hello_post_json( request: Request,