测试接口登录验证

This commit is contained in:
haotian 2025-07-28 11:04:08 +08:00
parent 806006a218
commit b3f0755c79

View File

@ -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,