up_data.go 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. package http
  2. import (
  3. "context"
  4. "go-common/app/admin/main/up/model/datamodel"
  5. "go-common/library/net/http/blademaster"
  6. )
  7. func dataGetFanSummary(c *blademaster.Context) {
  8. httpQueryFunc(new(datamodel.GetFansSummaryArg),
  9. func(context context.Context, arg interface{}) (res interface{}, err error) {
  10. return Svc.Crmservice.DataService().GetFansSummary(context, arg.(*datamodel.GetFansSummaryArg))
  11. },
  12. "dataGetFanSummary")(c)
  13. }
  14. func dataRelationFansHistory(c *blademaster.Context) {
  15. httpQueryFunc(new(datamodel.GetRelationFansHistoryArg),
  16. func(context context.Context, arg interface{}) (res interface{}, err error) {
  17. return Svc.Crmservice.DataService().GetRelationFansDay(context, arg.(*datamodel.GetRelationFansHistoryArg))
  18. },
  19. "dataRelationFansHistory")(c)
  20. }
  21. func dataGetUpArchiveInfo(c *blademaster.Context) {
  22. httpQueryFunc(new(datamodel.GetUpArchiveInfoArg),
  23. func(context context.Context, arg interface{}) (res interface{}, err error) {
  24. return Svc.Crmservice.DataService().GetUpArchiveInfo(context, arg.(*datamodel.GetUpArchiveInfoArg))
  25. },
  26. "dataGetUpArchiveInfo")(c)
  27. }
  28. func dataGetUpArchiveTagInfo(c *blademaster.Context) {
  29. httpQueryFunc(new(datamodel.GetUpArchiveTagInfoArg),
  30. func(context context.Context, arg interface{}) (res interface{}, err error) {
  31. return Svc.Crmservice.DataService().GetUpArchiveTagInfo(context, arg.(*datamodel.GetUpArchiveTagInfoArg))
  32. },
  33. "dataGetUpArchiveTagInfo")(c)
  34. }
  35. func dataGetUpViewInfo(c *blademaster.Context) {
  36. httpQueryFunc(new(datamodel.GetUpViewInfoArg),
  37. func(context context.Context, arg interface{}) (res interface{}, err error) {
  38. return Svc.Crmservice.DataService().GetUpViewInfo(context, arg.(*datamodel.GetUpViewInfoArg))
  39. },
  40. "dataGetUpViewInfo")(c)
  41. }