蛋蛋星球 后台端
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_advertising.go 3.6 KiB

1 week ago
1 week ago
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. package md
  2. var AdvertisingPlatform = []map[string]string{
  3. {"name": "穿山甲", "value": "chuanshanjia"},
  4. {"name": "优量汇", "value": "youlianghui"},
  5. }
  6. type AdvertisingBase struct {
  7. AndroidAdIsOpen string `json:"android_ad_is_open" example:"安卓广告是否开启(1:开启 0:不开启)"`
  8. IosAdIsOpen string `json:"ios_ad_is_open" example:"ios广告是否开启(1:开启 0:不开启)"`
  9. AndroidOpenAdIsOpen string `json:"android_open_ad_is_open" example:"安卓开屏广告是否开启(1:开启 0:不开启)"`
  10. IosOpenAdIsOpen string `json:"ios_open_ad_is_open" example:"ios开屏广告是否开启(1:开启 0:不开启)"`
  11. Voice string `json:"voice" example:"领取奖励声音"`
  12. VoiceUrl string `json:"voice_url"`
  13. Info string `json:"info" example:"广告商配置 {\"chuanshanjia\":{\"android_app_key\":\"\"}}"`
  14. }
  15. type AdvertisingBaseResp struct {
  16. SelectData []map[string]string `json:"select_data"`
  17. AdvertisingBase AdvertisingBase `json:"advertising_base"`
  18. }
  19. type AdvertisingListReq struct {
  20. Page string `json:"page"`
  21. Limit string `json:"limit"`
  22. Name string `json:"name"`
  23. Kind string `json:"kind"`
  24. }
  25. type AdvertisingListResp struct {
  26. AdvData []map[string]string `json:"adv_data"`
  27. SelectData []map[string]string `json:"select_data"`
  28. Total int64 `json:"total"`
  29. List []AdvertisingList `json:"list"`
  30. }
  31. type AdvertisingList struct {
  32. Id string `json:"id" `
  33. Name string `json:"name" example:"名称"`
  34. Kind string `json:"kind" example:"广告类型(1:开屏广告 2:插屏广告 3:激励视频 4:信息流广告 5:全屏视频)"`
  35. Info string `json:"info" example:"广告位配置 {\"chuanshanjia\":{\"android_ad_id\":[{\"id\":\"\",\"key\":\"\"}],\"ios_ad_id\":[{\"id\":\"\",\"key\":\"\"}}}"`
  36. CountingDown string `json:"counting_down" example:"倒计时 单位秒"`
  37. }
  38. type AdvertisingDelReq struct {
  39. Id []string `json:"id"`
  40. }
  41. type AdvertisingSaveReq struct {
  42. Id string `json:"id"`
  43. Name string `json:"name" example:"名称"`
  44. Kind string `json:"kind" example:"广告类型(1:开屏广告 2:插屏广告 3:激励视频 4:信息流广告 5:全屏视频)"`
  45. Info string `json:"info" example:"广告位配置 {\"chuanshanjia\":{\"android_ad_id\":[{\"id\":\"\",\"key\":\"\"}],\"ios_ad_id\":[{\"id\":\"\",\"key\":\"\"}}}"`
  46. CountingDown string `json:"counting_down" example:"倒计时 单位秒"`
  47. }
  48. type AdvertisingLimit struct {
  49. Minute string `json:"minute" example:"分钟"`
  50. ImeiNum string `json:"imei_num" example:"设备数量"`
  51. Tip string `json:"tip" example:"限制提示"`
  52. PublicImg string `json:"public_img" example:"公共弹窗图"`
  53. PublicImgUrl string `json:"public_img_url" example:"公共弹窗图"`
  54. PublicStr string `json:"public_str" example:"公共弹窗文字"`
  55. WithdrawImg string `json:"withdraw_img" example:"提现弹窗图"`
  56. WithdrawImgUrl string `json:"withdraw_img_url" example:"提现弹窗图"`
  57. WithdrawStr string `json:"withdraw_str" example:"提现弹窗文字"`
  58. }
  59. type AdvertisingFunctionListReq struct {
  60. Page string `json:"page"`
  61. Limit string `json:"limit"`
  62. }
  63. type AdvertisingFunctionListResp struct {
  64. SelectData []map[string]string `json:"select_data"`
  65. AdvData []map[string]string `json:"adv_data"`
  66. Total int64 `json:"total"`
  67. List []AdvertisingFunctionList `json:"list"`
  68. }
  69. type AdvertisingFunctionList struct {
  70. Id string `json:"id" `
  71. Type string `json:"type" example:"类型"`
  72. AdId string `json:"ad_id" example:"广告id"`
  73. }