TaobaoTbkDgVegasSendReportRequest.cs 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  1. using System.Text.Json.Serialization;
  2. using System.Collections.Generic;
  3. using Topsdk.Util;
  4. namespace Topsdk.Top.Ability2474.Request;
  5. public class TaobaoTbkDgVegasSendReportRequest : AbstractTopApiRequest
  6. {
  7. /*
  8. 统计日期
  9. */
  10. private string? bizDate;
  11. /*
  12. 渠道关系id
  13. */
  14. private long? relationId;
  15. /*
  16. 已下线,后续不需要填写
  17. */
  18. private long? activityId;
  19. /*
  20. 页码
  21. 默认值:1 */
  22. private long? pageNo;
  23. /*
  24. 每页大小
  25. 默认值:10 */
  26. private long? pageSize;
  27. /*
  28. 媒体推广pid
  29. */
  30. private string? pid;
  31. /*
  32. 查询维度,不填写默认是pid维度
  33. */
  34. private string? rptDim;
  35. /*
  36. 查询红包类型,1-超级红包,2-福利购,3-签到红包,4-福利直降,5-幸运赢免单,不传时默认查询超级红包数据
  37. 默认值:1 */
  38. private long? activityCategory;
  39. [JsonPropertyName("biz_date")]
  40. public string? BizDate
  41. {
  42. get => bizDate;
  43. set => this.bizDate = value;
  44. }
  45. [JsonPropertyName("relation_id")]
  46. public long? RelationId
  47. {
  48. get => relationId;
  49. set => this.relationId = value;
  50. }
  51. [JsonPropertyName("activity_id")]
  52. public long? ActivityId
  53. {
  54. get => activityId;
  55. set => this.activityId = value;
  56. }
  57. [JsonPropertyName("page_no")]
  58. public long? PageNo
  59. {
  60. get => pageNo;
  61. set => this.pageNo = value;
  62. }
  63. [JsonPropertyName("page_size")]
  64. public long? PageSize
  65. {
  66. get => pageSize;
  67. set => this.pageSize = value;
  68. }
  69. [JsonPropertyName("pid")]
  70. public string? Pid
  71. {
  72. get => pid;
  73. set => this.pid = value;
  74. }
  75. [JsonPropertyName("rpt_dim")]
  76. public string? RptDim
  77. {
  78. get => rptDim;
  79. set => this.rptDim = value;
  80. }
  81. [JsonPropertyName("activity_category")]
  82. public long? ActivityCategory
  83. {
  84. get => activityCategory;
  85. set => this.activityCategory = value;
  86. }
  87. public override IDictionary<string, string> ToRequestParam()
  88. {
  89. IDictionary<string, string> requestParam = new Dictionary<string, string>();
  90. if(this.bizDate != null)
  91. {
  92. requestParam.Add("biz_date",TopUtils.ConvertBasicType(this.bizDate));
  93. }
  94. if(this.relationId != null)
  95. {
  96. requestParam.Add("relation_id",TopUtils.ConvertBasicType(this.relationId));
  97. }
  98. if(this.activityId != null)
  99. {
  100. requestParam.Add("activity_id",TopUtils.ConvertBasicType(this.activityId));
  101. }
  102. if(this.pageNo != null)
  103. {
  104. requestParam.Add("page_no",TopUtils.ConvertBasicType(this.pageNo));
  105. }
  106. if(this.pageSize != null)
  107. {
  108. requestParam.Add("page_size",TopUtils.ConvertBasicType(this.pageSize));
  109. }
  110. if(this.pid != null)
  111. {
  112. requestParam.Add("pid",TopUtils.ConvertBasicType(this.pid));
  113. }
  114. if(this.rptDim != null)
  115. {
  116. requestParam.Add("rpt_dim",TopUtils.ConvertBasicType(this.rptDim));
  117. }
  118. if(this.activityCategory != null)
  119. {
  120. requestParam.Add("activity_category",TopUtils.ConvertBasicType(this.activityCategory));
  121. }
  122. return requestParam;
  123. }
  124. public override IDictionary<string, TopFileItem> ToFileParam()
  125. {
  126. IDictionary<string, TopFileItem> fileParam = new Dictionary<string, TopFileItem>();
  127. return fileParam;
  128. }
  129. public override string GetApiCode()
  130. {
  131. return "taobao.tbk.dg.vegas.send.report";
  132. }
  133. }