go-common/app/interface/main/web/http/broadcast.go

16 lines
277 B
Go
Raw Normal View History

2019-04-22 10:49:16 +00:00
package http
import (
bm "go-common/library/net/http/blademaster"
)
func broadServer(c *bm.Context) {
v := new(struct {
Platform string `form:"platform" validate:"required"`
})
if err := c.Bind(v); err != nil {
return
}
c.JSON(webSvc.BroadServers(c, v.Platform))
}