add gin-swagger

This commit is contained in:
pyihe
2022-08-16 17:58:36 +08:00
parent b61575b242
commit d300c79571
4 changed files with 135 additions and 11 deletions

View File

@@ -10,7 +10,7 @@ type game struct {
}
func (g *game) Handle(r http_api.IRouter) {
r.GET("/get", http_api.Wrap(g.get))
r.GET("/get", http_api.WrapFunc(g.get))
}
func (g *game) get(c *gin.Context) (interface{}, error) {