-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
控制器里怎么取到登录用户的 ID? #122
Comments
中间件里:
放在gin.Context里,用的时候:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
中间件的代码里只是验证的 token 是否有效,但是没取到用户是谁,这个在控制器里怎么取到?
The text was updated successfully, but these errors were encountered: