Initial commit

This commit is contained in:
Donny
2019-04-22 20:46:32 +08:00
commit 49ab8aadd1
25441 changed files with 4055000 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
package http
import (
"go-common/app/interface/main/activity/model/sports"
"go-common/library/ecode"
bm "go-common/library/net/http/blademaster"
)
func qq(c *bm.Context) {
params := c.Request.Form
p := new(sports.ParamQq)
if err := c.Bind(p); err != nil {
return
}
if p.Tp <= 0 && p.Route == "" {
c.JSON(nil, ecode.RequestErr)
return
}
c.JSON(sportsSvc.Qq(c, params, p))
}
func news(c *bm.Context) {
params := c.Request.Form
p := new(sports.ParamNews)
if err := c.Bind(p); err != nil {
return
}
c.JSON(sportsSvc.News(c, params, p))
}