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