uni-stat-pay-result.schema.json 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  1. {
  2. "bsonType": "object",
  3. "description": "存储统计汇总的支付数据",
  4. "required": [],
  5. "permission": {
  6. "read": "'READ_UNI_STAT_PAY' in auth.permission",
  7. "create": false,
  8. "update": false,
  9. "delete": false
  10. },
  11. "properties": {
  12. "_id": {
  13. "description": "ID,系统自动生成"
  14. },
  15. "appid": {
  16. "bsonType": "string",
  17. "description": "应用ID,对应opendb-app-list.appid",
  18. "foreignKey": "opendb-app-list.appid"
  19. },
  20. "platform_id": {
  21. "bsonType": "string",
  22. "description": "应用平台ID,对应uni-stat-app-platforms._id",
  23. "foreignKey": "uni-stat-app-platforms._id"
  24. },
  25. "channel_id": {
  26. "bsonType": "string",
  27. "description": "渠道/场景值ID,对应uni-stat-app-channels._id",
  28. "foreignKey": "uni-stat-app-channels._id"
  29. },
  30. "version_id": {
  31. "bsonType": "string",
  32. "description": "应用版本ID,对应opendb-app-versions._id",
  33. "foreignKey": "opendb-app-versions._id"
  34. },
  35. "pay_total_amount": {
  36. "bsonType": "int",
  37. "description": "支付金额:统计时间内,成功支付的订单金额之和(不剔除退款订单)。单位分。"
  38. },
  39. "pay_order_count": {
  40. "bsonType": "int",
  41. "description": "支付笔数:统计时间内,成功支付的订单数,一个订单对应唯一一个订单号。(不剔除退款订单。)"
  42. },
  43. "pay_user_count": {
  44. "bsonType": "int",
  45. "description": "支付人数:统计时间内,成功支付的人数(不剔除退款订单)。"
  46. },
  47. "pay_device_count": {
  48. "bsonType": "int",
  49. "description": "支付设备数:统计时间内,成功支付的设备数(不剔除退款订单)。"
  50. },
  51. "create_total_amount": {
  52. "bsonType": "int",
  53. "description": "下单金额:统计时间内,成功下单的订单金额(不剔除退款订单)。单位分。"
  54. },
  55. "create_order_count": {
  56. "bsonType": "int",
  57. "description": "下单笔数:统计时间内,成功下单的订单笔数(不剔除退款订单)。"
  58. },
  59. "create_user_count": {
  60. "bsonType": "int",
  61. "description": "下单人数:统计时间内,成功下单的客户数,一人多次下单记为一人(不剔除退款订单)。"
  62. },
  63. "create_device_count": {
  64. "bsonType": "int",
  65. "description": "下单设备数:统计时间内,成功下单的设备数,一台设备多次访问被计为一台(不剔除退款订单)。"
  66. },
  67. "refund_total_amount": {
  68. "bsonType": "int",
  69. "description": "成功退款金额:统计时间内,成功退款的金额。以成功退款时间点为准。单位分。"
  70. },
  71. "refund_order_count": {
  72. "bsonType": "int",
  73. "description": "成功退款订单数:统计时间内,成功退款的订单数。以成功退款时间点为准。"
  74. },
  75. "refund_user_count": {
  76. "bsonType": "int",
  77. "description": "成功退款人数:统计时间内,成功退款的人数(不剔除退款订单)。"
  78. },
  79. "refund_device_count": {
  80. "bsonType": "int",
  81. "description": "成功退款设备数:统计时间内,成功退款的设备数(不剔除退款订单)。"
  82. },
  83. "activity_user_count": {
  84. "bsonType": "int",
  85. "description": "访问人数:统计时间内,访问人数,一人多次访问被计为一人(只统计已登录的用户)。"
  86. },
  87. "activity_device_count": {
  88. "bsonType": "int",
  89. "description": "访问设备数:统计时间内,访问设备数,一台设备多次访问被计为一台(包含未登录的用户)。"
  90. },
  91. "new_user_count": {
  92. "bsonType": "int",
  93. "description": "新增注册人数:统计时间内,注册人数。"
  94. },
  95. "new_device_count": {
  96. "bsonType": "int",
  97. "description": "新增新设备数:统计时间内,新设备数。"
  98. },
  99. "new_user_create_order_count": {
  100. "bsonType": "int",
  101. "description": "新用户下单人数:统计时间内,新增注册人数中下单的人数。"
  102. },
  103. "new_user_pay_order_count": {
  104. "bsonType": "int",
  105. "description": "新用户支付人数:统计时间内,新增注册人数中下成功支付的人数。"
  106. },
  107. "dimension": {
  108. "bsonType": "string",
  109. "description": "统计范围 hour:按小时统计,day:按天统计,week:按周统计,month:按月统计 quarter:按季度统计 year:按年统计",
  110. "enum": [{
  111. "text": "年",
  112. "value": "year"
  113. }, {
  114. "text": "季度",
  115. "value": "quarter"
  116. }, {
  117. "text": "月",
  118. "value": "month"
  119. }, {
  120. "text": "周",
  121. "value": "week"
  122. }, {
  123. "text": "天",
  124. "value": "day"
  125. }, {
  126. "text": "小时",
  127. "value": "hour"
  128. }]
  129. },
  130. "create_date": {
  131. "bsonType": "timestamp",
  132. "description": "创建时间"
  133. },
  134. "start_time": {
  135. "bsonType": "timestamp",
  136. "description": "统计开始时间"
  137. },
  138. "end_time": {
  139. "bsonType": "timestamp",
  140. "description": "统计结束时间"
  141. },
  142. "stat_date": {
  143. "bsonType": "object",
  144. "description": "统计日期参数",
  145. "properties": {
  146. "date_str": {
  147. "bsonType": "string",
  148. "description": "如:2021-07-27"
  149. },
  150. "year": {
  151. "bsonType": "int",
  152. "description": "年"
  153. },
  154. "month": {
  155. "bsonType": "int",
  156. "description": "月"
  157. },
  158. "day": {
  159. "bsonType": "int",
  160. "description": "日"
  161. },
  162. "hour": {
  163. "bsonType": "int",
  164. "description": "时"
  165. }
  166. }
  167. }
  168. }
  169. }