go-common/app/interface/main/esports/http/pointdata.go

46 lines
790 B
Go
Raw Normal View History

2019-04-22 10:49:16 +00:00
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))
}