go-common/app/admin/main/mcn/server/http/statistics.go
2019-04-22 18:49:16 +08:00

36 lines
944 B
Go

package http
import (
"context"
"go-common/app/admin/main/mcn/model"
"go-common/library/net/http/blademaster"
)
func arcTopDataStatistics(c *blademaster.Context) {
httpGetWriterByExport(
new(model.McnGetRankReq),
func(cont context.Context, arg interface{}) (res interface{}, err error) {
return srv.ArcTopDataStatistics(cont, arg.(*model.McnGetRankReq))
},
"ArcTopDataStatistics")(c)
}
func mcnsTotalDatas(c *blademaster.Context) {
httpGetFunCheckCookie(
new(model.TotalMcnDataReq),
func(cont context.Context, arg interface{}) (res interface{}, err error) {
return srv.McnsTotalDatas(cont, arg.(*model.TotalMcnDataReq))
},
"McnsTotalDatas")(c)
}
func mcnFansAnalyze(c *blademaster.Context) {
httpGetFunCheckCookie(
new(model.McnCommonReq),
func(cont context.Context, arg interface{}) (res interface{}, err error) {
return srv.McnFansAnalyze(cont, arg.(*model.McnCommonReq))
},
"McnFansAnalyze")(c)
}