蛋蛋星球 后台端
25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.

md_advertising.go 5.2 KiB

3 hafta önce
4 gün önce
3 hafta önce
4 gün önce
3 hafta önce
3 hafta önce
4 gün önce
3 hafta önce
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. package md
  2. var AdvertisingPlatform = []map[string]string{
  3. {"name": "穿山甲", "value": "chuanshanjia"},
  4. {"name": "优量汇", "value": "youlianghui"},
  5. }
  6. var AdvertisingType = []map[string]string{
  7. {"name": "APP开屏(开屏广告)", "value": "open_advertisement"},
  8. {"name": "首页砸蛋(激励视频)", "value": "incentive_eggSmash"},
  9. {"name": "首页签到(激励视频)", "value": "incentive_eggSign"},
  10. {"name": "提现(激励视频)", "value": "incentive_withdraw"},
  11. {"name": "积分兑换(插屏)", "value": "interstitial_integralExchange"},
  12. {"name": "动态IM(信息流)", "value": "information_im"},
  13. }
  14. type AdvertisingBase struct {
  15. AndroidAdIsOpen string `json:"android_ad_is_open" example:"安卓广告是否开启(1:开启 0:不开启)"`
  16. IosAdIsOpen string `json:"ios_ad_is_open" example:"ios广告是否开启(1:开启 0:不开启)"`
  17. AndroidOpenAdIsOpen string `json:"android_open_ad_is_open" example:"安卓开屏广告是否开启(1:开启 0:不开启)"`
  18. IosOpenAdIsOpen string `json:"ios_open_ad_is_open" example:"ios开屏广告是否开启(1:开启 0:不开启)"`
  19. Voice string `json:"voice" example:"领取奖励声音"`
  20. VoiceUrl string `json:"voice_url"`
  21. Info string `json:"info" example:"广告商配置 {\"chuanshanjia\":{\"android_app_key\":\"\"}}"`
  22. }
  23. type AdvertisingBaseResp struct {
  24. SelectData []map[string]string `json:"select_data"`
  25. AdvertisingBase AdvertisingBase `json:"advertising_base"`
  26. }
  27. type AdvertisingListReq struct {
  28. Page string `json:"page"`
  29. Limit string `json:"limit"`
  30. Name string `json:"name"`
  31. Kind string `json:"kind"`
  32. }
  33. type AdvertisingListResp struct {
  34. AdvData []map[string]string `json:"adv_data"`
  35. SelectData []map[string]string `json:"select_data"`
  36. Total int64 `json:"total"`
  37. List []AdvertisingList `json:"list"`
  38. }
  39. type AdvertisingList struct {
  40. Id string `json:"id" `
  41. Name string `json:"name" example:"名称"`
  42. Kind string `json:"kind" example:"广告类型(1:开屏广告 2:插屏广告 3:激励视频 4:信息流广告 5:全屏视频)"`
  43. Info string `json:"info" example:"广告位配置 {\"chuanshanjia\":{\"android_ad_id\":[{\"id\":\"\",\"key\":\"\"}],\"ios_ad_id\":[{\"id\":\"\",\"key\":\"\"}}}"`
  44. CountingDown string `json:"counting_down" example:"倒计时 单位秒"`
  45. }
  46. type AdvertisingVisitListReq struct {
  47. Page string `json:"page"`
  48. Limit string `json:"limit"`
  49. Uid string `json:"uid"`
  50. Phone string `json:"phone"`
  51. Amount string `json:"amount" example:"ecpm "`
  52. StartTime string `json:"start_time"`
  53. EndTime string `json:"end_time"`
  54. Platform string `json:"platform" example:"广告平台 "`
  55. Type string `json:"type" example:"广告类型 "`
  56. }
  57. type AdvertisingVisitListResp struct {
  58. PlatformData []map[string]string `json:"platform_data"`
  59. TypeData []map[string]string `json:"type_data"`
  60. Total int64 `json:"total"`
  61. List []AdvertisingVisitList `json:"list"`
  62. }
  63. type AdvertisingVisitList struct {
  64. Id string `json:"id" `
  65. Uid string `json:"uid" example:"用户id"`
  66. Phone string `json:"phone" example:"手机号"`
  67. Ecpm string `json:"ecpm" example:"ecpm"`
  68. Integral string `json:"integral" example:"活跃值"`
  69. Platform string `json:"platform" example:"广告平台"`
  70. PhonePlatform string `json:"phone_platform" example:"手机平台"`
  71. Type string `json:"type" example:"广告位置"`
  72. Time string `json:"time" example:"时间"`
  73. }
  74. type AdvertisingDelReq struct {
  75. Id []string `json:"id"`
  76. }
  77. type AdvertisingSaveReq struct {
  78. Id string `json:"id"`
  79. Name string `json:"name" example:"名称"`
  80. Kind string `json:"kind" example:"广告类型(1:开屏广告 2:插屏广告 3:激励视频 4:信息流广告 5:全屏视频)"`
  81. Info string `json:"info" example:"广告位配置 {\"chuanshanjia\":{\"android_ad_id\":[{\"id\":\"\",\"key\":\"\"}],\"ios_ad_id\":[{\"id\":\"\",\"key\":\"\"}}}"`
  82. CountingDown string `json:"counting_down" example:"倒计时 单位秒"`
  83. }
  84. type AdvertisingLimit struct {
  85. Minute string `json:"minute" example:"分钟"`
  86. ImeiNum string `json:"imei_num" example:"设备数量"`
  87. Tip string `json:"tip" example:"限制提示"`
  88. PublicImg string `json:"public_img" example:"公共弹窗图"`
  89. PublicImgUrl string `json:"public_img_url" example:"公共弹窗图"`
  90. PublicStr string `json:"public_str" example:"公共弹窗文字"`
  91. WithdrawImg string `json:"withdraw_img" example:"提现弹窗图"`
  92. WithdrawImgUrl string `json:"withdraw_img_url" example:"提现弹窗图"`
  93. WithdrawStr string `json:"withdraw_str" example:"提现弹窗文字"`
  94. }
  95. type AdvertisingFunctionListReq struct {
  96. Page string `json:"page"`
  97. Limit string `json:"limit"`
  98. }
  99. type AdvertisingFunctionListResp struct {
  100. SelectData []map[string]string `json:"select_data"`
  101. AdvData []map[string]string `json:"adv_data"`
  102. Total int64 `json:"total"`
  103. List []AdvertisingFunctionList `json:"list"`
  104. }
  105. type AdvertisingFunctionList struct {
  106. Id string `json:"id" `
  107. Type string `json:"type" example:"类型"`
  108. AdId string `json:"ad_id" example:"广告id"`
  109. }