广告平台(站长使用)
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.

md_data_center_generate_data.go 7.1 KiB

2 months ago
4 weeks ago
2 months ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. package md
  2. type DataCenterGenerateDataReq struct {
  3. Limit string `json:"limit"`
  4. Page string `json:"page" `
  5. Name string `json:"name"`
  6. State string `json:"state"`
  7. Platform string `json:"platform"`
  8. StartTime string `json:"start_time"`
  9. EndTime string `json:"end_time"`
  10. }
  11. type DataCenterGenerateDataForOpenReq struct {
  12. Limit string `json:"limit"`
  13. Page string `json:"page" `
  14. MediumId string `json:"medium_id" binding:"required"` //媒体id
  15. StartTime string `json:"start_time"`
  16. EndTime string `json:"end_time"`
  17. }
  18. type DataCenterGenerateDataRes struct {
  19. List []DataCenterGenerateDataData `json:"list" `
  20. Total int64 `json:"total"`
  21. State []SelectData `json:"state"`
  22. Platform []SelectData `json:"platform"`
  23. }
  24. type DataCenterGenerateDataData struct {
  25. Id string `json:"id" example:"id"`
  26. Date string `json:"date" example:"日期"`
  27. Name string `json:"name" example:"名称"`
  28. Platform string `json:"platform" example:"平台名称"`
  29. AdvName string `json:"adv_name" example:"广告位"`
  30. State string `json:"state" example:"状态id"`
  31. OldExposureCount string `json:"old_exposure_count" example:"原-曝光量"`
  32. OldClickCount string `json:"old_click_count" example:"原-点击量"`
  33. OldClickRate string `json:"old_click_rate" example:"原-点击率"`
  34. OldEcpm string `json:"old_ecpm" example:"'原-ecpm(元)"`
  35. ExposureCount string `json:"exposure_count" example:"现-曝光量"`
  36. ClickCount string `json:"click_count" example:"现-点击量"`
  37. ClickRate string `json:"click_rate" example:"现-点击率"`
  38. Ecpm string `json:"ecpm" example:"'现-ecpm(元)"`
  39. PlatformRetention string `json:"platform_retention" example:"平台留存(元)"`
  40. CommissionRetention string `json:"commission_retention" example:"佣金留存(元)"`
  41. PriceAdjustmentRetention string `json:"price_adjustment_retention" example:"调价留存(元)"`
  42. MediaRevenue string `json:"media_revenue" example:"媒体收益(元)"`
  43. AgentRevenue string `json:"agent_revenue" example:"代理收益(元)"`
  44. ExtraRevenue string `json:"extra_revenue" example:"额外收益(元)"`
  45. AgreementSharing string `json:"agreement_sharing" example:"协议分成(元)"`
  46. AgreementSharingTotal string `json:"agreement_sharing_total" example:"协议总分成(元)"`
  47. IsGenerateReport string `json:"is_generate_report" example:"是否已生成报表(0:未 1:已)"`
  48. }
  49. type DataCenterIncomeDataRes struct {
  50. List []DataCenterIncomeDataData `json:"list" `
  51. Total int64 `json:"total"`
  52. State []SelectData `json:"state"`
  53. Platform []SelectData `json:"platform"`
  54. }
  55. type DataCenterIncomeDataData struct {
  56. Id string `json:"id" example:"id"`
  57. Date string `json:"date" example:"日期"`
  58. Name string `json:"name" example:"名称"`
  59. Platform string `json:"platform" example:"平台名称"`
  60. AdvName string `json:"adv_name" example:"广告位"`
  61. State string `json:"state" example:"状态id"`
  62. ExposureCount string `json:"exposure_count" example:"现-曝光量"`
  63. ClickCount string `json:"click_count" example:"现-点击量"`
  64. ClickRate string `json:"click_rate" example:"现-点击率"`
  65. Ecpm string `json:"ecpm" example:"'现-ecpm(元)"`
  66. MediaRevenue string `json:"media_revenue" example:"媒体收益(元)"`
  67. AgreementSharing string `json:"agreement_sharing" example:"平台收益(元)"`
  68. AgentRevenue string `json:"agent_revenue" example:"代理收益(元)"`
  69. SettleAmount string `json:"settle_amount" example:"结算收益(元)"`
  70. }
  71. type DataCenterIncomeDataDetail struct {
  72. Platform string `json:"platform" example:"填充来源"`
  73. MediaRevenue string `json:"media_revenue" example:"媒体收益(元)"`
  74. MediaRevenueRate string `json:"media_revenue_rate" example:"媒体收益百分比"`
  75. AgreementSharingRate string `json:"agreement_sharing_rate" example:"平台收益百分比"`
  76. AgreementSharing string `json:"agreement_sharing" example:"平台收益(元)"`
  77. AgentRevenue string `json:"agent_revenue" example:"代理收益(元)"`
  78. AgentRevenueRate string `json:"agent_revenue_rate" example:"代理收益百分比"`
  79. DataSource string `json:"data_source" example:"数据来源"`
  80. MediumName string `json:"medium_name" example:"媒体名称"`
  81. CreateAt string `json:"create_at"`
  82. UpdateAt string `json:"update_at"`
  83. AgentReward []DataCenterGenerateDataDetailAgentRewardSecond `json:"agent_reward"`
  84. }
  85. type DataCenterGenerateDataCommReq struct {
  86. Id string `json:"id" example:"列表id"`
  87. }
  88. type DataCenterGenerateDataDetailData struct {
  89. PlatformRetentionRate string `json:"platform_retention_rate" example:"平台留存百分比"`
  90. CommissionRetentionRate string `json:"commission_retention_rate" example:"佣金留存百分比"`
  91. MediaRevenueRate string `json:"media_revenue_rate" example:"媒体收益百分比"`
  92. AgentRevenueRate string `json:"agent_revenue_rate" example:"代理收益百分比"`
  93. ExtraRevenueRate string `json:"extra_revenue_rate" example:"额外收益百分比"`
  94. AgreementSharingRate string `json:"agreement_sharing_rate" example:"协议分成百分比"`
  95. CreateAt string `json:"create_at" `
  96. UpdateAt string `json:"update_at" `
  97. AgentReward []DataCenterGenerateDataDetailAgentReward `json:"agent_reward"`
  98. }
  99. type DataCenterGenerateDataDetailAgentReward struct {
  100. Name string `json:"name"`
  101. Account string `json:"account"`
  102. AgentRevenue string `json:"agent_revenue" example:"代理收益(元)"`
  103. AgentRevenueRate string `json:"agent_revenue_rate" example:"代理收益百分比"`
  104. ExtraRevenue string `json:"extra_revenue" example:"额外收益(元)"`
  105. ExtraRevenueRate string `json:"extra_revenue_rate" example:"'额外收益百分比"`
  106. }
  107. type DataCenterGenerateDataDetailAgentRewardSecond struct {
  108. Name string `json:"name"`
  109. Account string `json:"account"`
  110. AgentRevenue string `json:"agent_revenue" example:"代理收益(元)"`
  111. AgentRevenueRate string `json:"agent_revenue_rate" example:"代理收益百分比"`
  112. }