12.1 提供的接口和返回的数据
12.1.1 对外提供的接口
销售额总数
接口其实还是前面的接口, 只是返回值多了个销售额总数
http://localhost:8070/realtime-total?date=2019-08-28
销售额分时统计
与前面的接口相比, id 的值发生了变化
http://localhost:8070/realtime-hour?id=order_amount&date=2019-02-01
12.1.2 返回的数据格式
总数
[{"id":"dau","name":"新增日活","value":1200},
{"id":"new_mid","name":"新增设备","value":233 },
{"id":"order_amount","name":"新增交易额","value":1000.2 }]
分时统计
{"yesterday":{"11":383,"12":123,"17":88,"19":200 },
"today":{"12":38,"13":1233,"17":123,"19":688 }}