Skip to content

Commit

Permalink
Fix return schema of user me api (#497)
Browse files Browse the repository at this point in the history
  • Loading branch information
wu-clan authored Jan 23, 2025
1 parent 3b65679 commit 1c46e24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/app/admin/api/v1/sys/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ async def password_reset(request: Request, obj: ResetPasswordParam) -> ResponseM


@router.get('/me', summary='获取当前用户信息', dependencies=[DependsJwtAuth], response_model_exclude={'password'})
async def get_current_user(request: Request) -> ResponseSchemaModel[GetUserInfoDetail]:
async def get_current_user(request: Request) -> ResponseSchemaModel[GetCurrentUserInfoDetail]:
data = GetCurrentUserInfoDetail(**request.user.model_dump())
return response_base.success(data=data)

Expand Down

0 comments on commit 1c46e24

Please sign in to comment.