You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
790 B
45 lines
790 B
package http |
|
|
|
import ( |
|
"go-common/app/interface/main/esports/model" |
|
bm "go-common/library/net/http/blademaster" |
|
) |
|
|
|
func game(c *bm.Context) { |
|
p := new(model.ParamGame) |
|
if err := c.Bind(p); err != nil { |
|
return |
|
} |
|
c.JSON(eSvc.Game(c, p)) |
|
} |
|
|
|
func items(c *bm.Context) { |
|
p := new(model.ParamLeidas) |
|
if err := c.Bind(p); err != nil { |
|
return |
|
} |
|
c.JSON(eSvc.Items(c, p)) |
|
} |
|
|
|
func heroes(c *bm.Context) { |
|
p := new(model.ParamLeidas) |
|
if err := c.Bind(p); err != nil { |
|
return |
|
} |
|
c.JSON(eSvc.Heroes(c, p)) |
|
} |
|
|
|
func abilities(c *bm.Context) { |
|
p := new(model.ParamLeidas) |
|
if err := c.Bind(p); err != nil { |
|
return |
|
} |
|
c.JSON(eSvc.Abilities(c, p)) |
|
} |
|
func players(c *bm.Context) { |
|
p := new(model.ParamLeidas) |
|
if err := c.Bind(p); err != nil { |
|
return |
|
} |
|
c.JSON(eSvc.Players(c, p)) |
|
}
|
|
|