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

封装自己的的APPEngine,避免重复写 appG := app.Gin{C: c} #123

Open
AnsonCode opened this issue Jan 16, 2021 · 0 comments
Open

Comments

@AnsonCode
Copy link

大佬,我看每个controller中都要写一遍 appG := app.Gin{C: c}。可否改造下router,自动将 appG := app.Gin{C: c}注册进去,这样写controller时用app.Gin代替gin.Context,写起来会好很多。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant