statistics.go 944 B

1234567891011121314151617181920212223242526272829303132333435
  1. package http
  2. import (
  3. "context"
  4. "go-common/app/admin/main/mcn/model"
  5. "go-common/library/net/http/blademaster"
  6. )
  7. func arcTopDataStatistics(c *blademaster.Context) {
  8. httpGetWriterByExport(
  9. new(model.McnGetRankReq),
  10. func(cont context.Context, arg interface{}) (res interface{}, err error) {
  11. return srv.ArcTopDataStatistics(cont, arg.(*model.McnGetRankReq))
  12. },
  13. "ArcTopDataStatistics")(c)
  14. }
  15. func mcnsTotalDatas(c *blademaster.Context) {
  16. httpGetFunCheckCookie(
  17. new(model.TotalMcnDataReq),
  18. func(cont context.Context, arg interface{}) (res interface{}, err error) {
  19. return srv.McnsTotalDatas(cont, arg.(*model.TotalMcnDataReq))
  20. },
  21. "McnsTotalDatas")(c)
  22. }
  23. func mcnFansAnalyze(c *blademaster.Context) {
  24. httpGetFunCheckCookie(
  25. new(model.McnCommonReq),
  26. func(cont context.Context, arg interface{}) (res interface{}, err error) {
  27. return srv.McnFansAnalyze(cont, arg.(*model.McnCommonReq))
  28. },
  29. "McnFansAnalyze")(c)
  30. }