获取盈利图表数据

  • 接口说明: 获取盈利图表数据
  • 接口地址: /api//statistic/financeChart
  • 请求方式: GET

请求参数

参数名称类型是否必须描述
filter[type]datetime统计方式(1 日 2 周 3 月)
filter[createdAtBegin]datetime时间大于
filter[createdAtEnd]datetime时间小于

请求示例

  1. /api//statistic/financeChart?filter[createdAtBegin]=2020-01-01&filter[createdAtEnd]=2020-02-01&page[number]=1

返回说明

  • 成功,http 状态码: 200
  • 失败,http 状态码: 404

返回结果

关联数据模型字段释义参见请参见相应文档

参数名称类型出现要求描述
dataobject基础数据
typestring数据类型
idint数据 id
attributesobject数据属性
attributes.datefloat图表 X 轴使用的时间点
attributes.order_countint订单数量
attributes.order_amountfloat订单数量
attributes.total_profitfloat平台总盈利
attributes.register_profitfloat注册加入收入
attributes.master_portionfloat打赏提成收入
attributes.withdrawal_profitfloat提现手续费收入

返回示例

  1. {
  2. "data": [
  3. {
  4. "type": "finance",
  5. "id": "",
  6. "attributes": {
  7. "date": "2019-52",
  8. "order_count": "48",
  9. "order_amount": "0.00",
  10. "total_profit": "767.00",
  11. "register_profit": "565.00",
  12. "master_portion": "767.00",
  13. "withdrawal_profit": "767.00"
  14. }
  15. },
  16. {
  17. "type": "finance",
  18. "id": "",
  19. "attributes": {
  20. "date": "2019-53",
  21. "order_count": "22",
  22. "order_amount": "330.00",
  23. "total_profit": "333.00",
  24. "register_profit": "444.00",
  25. "master_portion": "444.00",
  26. "withdrawal_profit": "444.00"
  27. }
  28. },
  29. {
  30. "type": "finance",
  31. "id": "",
  32. "attributes": {
  33. "date": "2020-01",
  34. "order_count": "88",
  35. "order_amount": "330.00",
  36. "total_profit": "1110.00",
  37. "register_profit": "1110.00",
  38. "master_portion": "1221.00",
  39. "withdrawal_profit": "1221.00"
  40. }
  41. },
  42. {
  43. "type": "finance",
  44. "id": "",
  45. "attributes": {
  46. "date": "2020-02",
  47. "order_count": "118",
  48. "order_amount": "220.00",
  49. "total_profit": "1756.00",
  50. "register_profit": "1574.00",
  51. "master_portion": "1867.00",
  52. "withdrawal_profit": "1867.00"
  53. }
  54. },
  55. {
  56. "type": "finance",
  57. "id": "",
  58. "attributes": {
  59. "date": "2020-03",
  60. "order_count": "59",
  61. "order_amount": "1106.03",
  62. "total_profit": "1059.62",
  63. "register_profit": "777.02",
  64. "master_portion": "1110.00",
  65. "withdrawal_profit": "837.60"
  66. }
  67. }
  68. ]
  69. }