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,