文档
测试

统计用户指定月份的每天总运动距离

POST
/api/my/month/getMonthDistanceSum

请求头

参数名
类型
描述
必填
token
string
必填

请求参数

参数名
类型
描述
必填
month_time
string
2021-11
必填

响应参数

参数名
类型
描述
必填
code
int
示例:1
必填
msg
string
示例:success
必填
data
object
数据字典
必填
target_distance
string
示例:30
必填
sum_month
array
数据列表
必填
distance
float
示例:12.796
必填
date
string
示例:2021-11-03
必填
unit
string
示例:km
必填

说明 / 示例

```json { "code": 1, "msg": "success", "data": { "target_distance": "30", "sum_month": [ { "distance": 12.796, "date": "2021-11-03", "unit": "km" }, { "distance": 1.162, "date": "2021-11-04", "unit": "km" }, { "distance": 5.629, "date": "2021-11-08", "unit": "km" }, { "distance": 5.778, "date": "2021-11-10", "unit": "km" }, { "distance": 0.89, "date": "2021-11-11", "unit": "km" }, { "distance": 2.368, "date": "2021-11-12", "unit": "km" }, { "distance": 1.342, "date": "2021-11-15", "unit": "km" }, { "distance": 1.254, "date": "2021-11-18", "unit": "km" }, { "distance": 3.935, "date": "2021-11-19", "unit": "km" } ] } } ```