You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
560 B
29 lines
560 B
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)) |
|
}
|
|
|