文档
测试

获取体重图标和表格数据

POST
WeightChartData

请求头

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

请求参数

参数名
类型
描述
必填
start
string
开始时间,示例:2021-01-14,不提交默认为30天前
可选
end
string
结束时间,示例:2020-12-15,不提交默认为当天
可选

响应参数

参数名
类型
描述
必填
msg
string
示例:success
必填
code
int
示例:0
必填
data
object
数据字典
必填
success
boolean
优先判断本字段,如果为false则用户未填写初始数据,示例:true
必填
table
object
有打卡天数表格的数据,数据字典
必填
start_time
int
示例:1609084800
必填
start_date
string
示例:2020-12-28
必填
start_date_short
string
示例:12月28日
必填
end_time
int
示例:1611763199
必填
end_date
string
示例:2021-01-27
必填
end_date_short
string
示例:1月27日
必填
count
int
示例:2
必填
first
object
数据字典
必填
date
string
示例:1月27日
必填
weight
string
示例:120.00
必填
last
object
数据字典
必填
date
string
示例:1月27日
必填
weight
string
示例:120.00
必填
chart
object
图标数据,数据字典
必填
date
array
数据列表
必填
morning
array
数据列表
必填
night
array
数据列表
必填
daily
object
每日记录填写表格的数据,数据字典
必填
bmi
object
数据字典
必填
height
string
示例:180.00
必填
weight
string
示例:120.00
必填
first_weight
string
示例:120.00
必填
bmi
string
示例:18.5
必填
gender
string
示例:0
必填
weight_list
array
数据列表
必填
date
string
示例:2021-01-27
必填
morning_weight
string
示例:120.00
必填
night_weight
string
示例:-
必填

说明 / 示例

返回示例: ```json { "msg": "success", "code": 0, "data": { "success": true, "table": { "start_time": 1609084800, "start_date": "2020-12-28", "start_date_short": "12月28日", "end_time": 1611763199, "end_date": "2021-01-27", "end_date_short": "1月27日", "count": 2, "first": { "date": "1月27日", "weight": "120.00" }, "last": { "date": "1月27日", "weight": "120.00" } }, "chart": { "date": [ "2020-12-28", "2020-12-29", "2020-12-30", "2020-12-31", "2021-01-01", "2021-01-02", "2021-01-03", "2021-01-04", "2021-01-05", "2021-01-06", "2021-01-07", "2021-01-08", "2021-01-09", "2021-01-10", "2021-01-11", "2021-01-12", "2021-01-13", "2021-01-14", "2021-01-15", "2021-01-16", "2021-01-17", "2021-01-18", "2021-01-19", "2021-01-20", "2021-01-21", "2021-01-22", "2021-01-23", "2021-01-24", "2021-01-25", "2021-01-26", "2021-01-27" ], "morning": [ "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "120.00", "120.00" ], "night": [ "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "120.00", "" ] }, "daily": { "bmi": { "height": "180.00", "weight": "120.00", "first_weight": "120.00", "bmi": "18.5", "gender": "0" }, "weight_list": [ { "date": "2021-01-27", "morning_weight": "120.00", "night_weight": "-" }, { "date": "2021-01-26", "morning_weight": "120.00", "night_weight": "120.00" }, { "date": "2021-01-25", "morning_weight": "-", "night_weight": "-" }, { "date": "2021-01-24", "morning_weight": "-", "night_weight": "-" }, { "date": "2021-01-23", "morning_weight": "-", "night_weight": "-" }, { "date": "2021-01-22", "morning_weight": "-", "night_weight": "-" }, { "date": "2021-01-21", "morning_weight": "-", "night_weight": "-" }, { "date": "2021-01-20", "morning_weight": "-", "night_weight": "-" }, { "date": "2021-01-19", "morning_weight": "-", "night_weight": "-" }, { "date": "2021-01-18", "morning_weight": "-", "night_weight": "-" }, { "date": "2021-01-17", "morning_weight": "-", "night_weight": "-" }, { "date": "2021-01-16", "morning_weight": "-", "night_weight": "-" }, { "date": "2021-01-15", "morning_weight": "-", "night_weight": "-" }, { "date": "2021-01-14", "morning_weight": "-", "night_weight": "-" }, { "date": "2021-01-13", "morning_weight": "-", "night_weight": "-" }, { "date": "2021-01-12", "morning_weight": "-", "night_weight": "-" }, { "date": "2021-01-11", "morning_weight": "-", "night_weight": "-" }, { "date": "2021-01-10", "morning_weight": "-", "night_weight": "-" }, { "date": "2021-01-09", "morning_weight": "-", "night_weight": "-" }, { "date": "2021-01-08", "morning_weight": "-", "night_weight": "-" }, { "date": "2021-01-07", "morning_weight": "-", "night_weight": "-" }, { "date": "2021-01-06", "morning_weight": "-", "night_weight": "-" }, { "date": "2021-01-05", "morning_weight": "-", "night_weight": "-" }, { "date": "2021-01-04", "morning_weight": "-", "night_weight": "-" }, { "date": "2021-01-03", "morning_weight": "-", "night_weight": "-" }, { "date": "2021-01-02", "morning_weight": "-", "night_weight": "-" }, { "date": "2021-01-01", "morning_weight": "-", "night_weight": "-" }, { "date": "2020-12-31", "morning_weight": "-", "night_weight": "-" }, { "date": "2020-12-30", "morning_weight": "-", "night_weight": "-" }, { "date": "2020-12-29", "morning_weight": "-", "night_weight": "-" }, { "date": "2020-12-28", "morning_weight": "-", "night_weight": "-" } ] } } } ```