pointdata.go 790 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. package http
  2. import (
  3. "go-common/app/interface/main/esports/model"
  4. bm "go-common/library/net/http/blademaster"
  5. )
  6. func game(c *bm.Context) {
  7. p := new(model.ParamGame)
  8. if err := c.Bind(p); err != nil {
  9. return
  10. }
  11. c.JSON(eSvc.Game(c, p))
  12. }
  13. func items(c *bm.Context) {
  14. p := new(model.ParamLeidas)
  15. if err := c.Bind(p); err != nil {
  16. return
  17. }
  18. c.JSON(eSvc.Items(c, p))
  19. }
  20. func heroes(c *bm.Context) {
  21. p := new(model.ParamLeidas)
  22. if err := c.Bind(p); err != nil {
  23. return
  24. }
  25. c.JSON(eSvc.Heroes(c, p))
  26. }
  27. func abilities(c *bm.Context) {
  28. p := new(model.ParamLeidas)
  29. if err := c.Bind(p); err != nil {
  30. return
  31. }
  32. c.JSON(eSvc.Abilities(c, p))
  33. }
  34. func players(c *bm.Context) {
  35. p := new(model.ParamLeidas)
  36. if err := c.Bind(p); err != nil {
  37. return
  38. }
  39. c.JSON(eSvc.Players(c, p))
  40. }