Skip to content
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

fw.Context add something for reading or writing by middlewares #4

Open
kirileec opened this issue Sep 23, 2024 · 0 comments
Open

fw.Context add something for reading or writing by middlewares #4

kirileec opened this issue Sep 23, 2024 · 0 comments

Comments

@kirileec
Copy link
Contributor

// WxLogin
// @POST /wx_login
// @Ignore Authorization
func (u *UserController) WxLogin(ctx *fw.Context, req *WxLoginReq) {
    ctx.G[middlewares.ISetAuth].SetAuth(token,data)
}

增加一种方式, 让方法的参数数量可以不要那么多

@kirileec kirileec moved this to Backlog in fw Sep 23, 2024
@kirileec kirileec added this to fw Sep 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Backlog
Development

No branches or pull requests

1 participant