broadcast.go 277 B

123456789101112131415
  1. package http
  2. import (
  3. bm "go-common/library/net/http/blademaster"
  4. )
  5. func broadServer(c *bm.Context) {
  6. v := new(struct {
  7. Platform string `form:"platform" validate:"required"`
  8. })
  9. if err := c.Bind(v); err != nil {
  10. return
  11. }
  12. c.JSON(webSvc.BroadServers(c, v.Platform))
  13. }