测试接口登录验证
This commit is contained in:
parent
806006a218
commit
b3f0755c79
@ -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,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user