近7天摄入消耗折线图及体重数据
## 1近7天摄入消耗及体重数据
| 属性 | 值 |
| ----------- | ---- |
| 请求方式 | POST|
| 测试URL | health.yicai.com/api/weight/recent_data|
| 发布URL | |
##### 请求参数
| 字段 | 必填 | 类型 | 示例值 | 描述 |
| ---- | ---- | ---- | ------ | --------- |
| YICAI-TOKEN| 是 | string | 063uiNll2rMcE84EFhml2pGKMj1uiNlq | 通讯token header 中 |
##### 返回参数说明
| 字段 | 描述 |
| ---- | ---- |
|statistic.logs|推荐摄入 真实输入 推荐消耗 真实消耗 数据 默认[]|
|weight.logs|近7次体重数据 默认[]|
##### 返回值
code 200,请求成功 数据正常
``` javascript
{
"status": "success",
"code": 200,
"msg": "",
"data": {
"weight": {
"logs": [
{
"id": 10,
"day": "昨天",
"weight": 190,
"precent": 100
},
{
"id": 1,
"day": "05/16",
"weight": 182,
"precent": 95.8
},
{
"id": 2,
"day": "05/15",
"weight": 182,
"precent": 95.8
},
{
"id": 3,
"day": "05/14",
"weight": 182,
"precent": 95.8
},
{
"id": 4,
"day": "05/13",
"weight": 182,
"precent": 95.8
},
{
"id": 5,
"day": "05/12",
"weight": 182,
"precent": 95.8
},
{
"id": 6,
"day": "05/11",
"weight": 182,
"precent": 95.8
},
{
"id": 7,
"day": "05/10",
"weight": 182,
"precent": 95.8
},
{
"id": 8,
"day": "05/09",
"weight": 182,
"precent": 95.8
}
]
},
"statistic": {
"logs": [
{
"day": "今天",
"recommend_day_intake_cal": 2807,
"recommend_day_intake_cal_precent": 0,
"true_day_intake_cal": 0,
"true_day_intake_cal_precent": 0,
"recommend_day_sport_cal": 0,
"recommend_day_sport_cal_precent": 0,
"true_day_sport_cal": 172,
"true_day_sport_cal_precent": 38.4
},
{
"day": "昨天",
"recommend_day_intake_cal": 2807,
"recommend_day_intake_cal_precent": 0,
"true_day_intake_cal": 4801.8,
"true_day_intake_cal_precent": 100,
"recommend_day_sport_cal": 1994.8,
"recommend_day_sport_cal_precent": 0,
"true_day_sport_cal": 447.6,
"true_day_sport_cal_precent": 100
},
{
"day": "05/17",
"recommend_day_intake_cal": 2807,
"recommend_day_intake_cal_precent": 0,
"true_day_intake_cal": 732,
"true_day_intake_cal_precent": 15.2,
"recommend_day_sport_cal": 0,
"recommend_day_sport_cal_precent": 0,
"true_day_sport_cal": 78.6,
"true_day_sport_cal_precent": 17.6
},
{
"day": "05/16",
"recommend_day_intake_cal": 2807,
"recommend_day_intake_cal_precent": 0,
"true_day_intake_cal": 200,
"true_day_intake_cal_precent": 4.2,
"recommend_day_sport_cal": 0,
"recommend_day_sport_cal_precent": 0,
"true_day_sport_cal": 0,
"true_day_sport_cal_precent": 0
},
{
"day": "05/15",
"recommend_day_intake_cal": 2807,
"recommend_day_intake_cal_precent": 0,
"true_day_intake_cal": 100,
"true_day_intake_cal_precent": 2.1,
"recommend_day_sport_cal": 0,
"recommend_day_sport_cal_precent": 0,
"true_day_sport_cal": 0,
"true_day_sport_cal_precent": 0
}
]
}
},
"error": []
}
```