mirror of
https://github.com/pyihe/go-pkg.git
synced 2025-10-25 08:50:30 +08:00
add gin-swagger
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user