体姿管理
## 1 获取今日体姿视频列表
| 属性 | 值 |
| ----------- | ---- |
| 请求方式 | POST|
| 测试URL | health.yicai.com/api/user_wellness_plan/body_posture_courses|
| 发布URL | |
> 测试阶段 要注意数据获取 loading
##### 请求参数
| 字段 | 必填 | 类型 | 示例值 | 描述 |
| ---- | ---- | ---- | ------ | --------- |
| YICAI-TOKEN| 是 | string | 063uiNll2rMcE84EFhml2pGKMj1uiNlq | 通讯token header 中 |
##### 返回参数说明
| 字段 | 描述 |
| ---- | ---- |
##### 返回值
code 200,请求成功 数据正常
``` javascript
{
"status": "success",
"code": 200,
"msg": "",
"data": {
"last_unfinish_id": 120,
"data": [
{
"id": 120,
"class_id": 1,
"class_name": "体姿管理",
"day_no": 12,
"title": "体姿-眼镜蛇式",
"subtitle": "初级-1分钟",
"level": "初级",
"tools": "瑜伽垫",
"thumb_url": "https://yicai-health.oss-accelerate.aliyuncs.com/healthy_image/20220416_vOiLNpTWYCLLPtd.png",
"duration": 1,
"train_status": 0
},
{
"id": 121,
"class_id": 1,
"class_name": "体姿管理",
"day_no": 12,
"title": "体姿-瑜伽猫式",
"subtitle": "初级-1分钟",
"level": "初级",
"tools": "瑜伽垫",
"thumb_url": "https://yicai-health.oss-accelerate.aliyuncs.com/healthy_image/20220416_aQxs951EwRTrAWp.png",
"duration": 1,
"train_status": 0
},
{
"id": 122,
"class_id": 1,
"class_name": "体姿管理",
"day_no": 12,
"title": "体姿-坐姿臀大肌拉伸",
"subtitle": "初级-1分钟",
"level": "初级",
"tools": "瑜伽垫",
"thumb_url": "https://yicai-health.oss-accelerate.aliyuncs.com/healthy_image/20220416_i7gKoiSMQSV8U8O.png",
"duration": 1,
"train_status": 0
},
{
"id": 123,
"class_id": 1,
"class_name": "体姿管理",
"day_no": 12,
"title": "体姿-坐位体前屈拉伸(下背部肌群拉伸)",
"subtitle": "初级-1分钟",
"level": "初级",
"tools": "瑜伽垫",
"thumb_url": "https://yicai-health.oss-accelerate.aliyuncs.com/healthy_image/20220416_pDxkldASYFVMMgK.png",
"duration": 1,
"train_status": 0
},
{
"id": 124,
"class_id": 1,
"class_name": "体姿管理",
"day_no": 12,
"title": "体姿-弓箭步",
"subtitle": "初级-1分钟",
"level": "初级",
"tools": "瑜伽垫",
"thumb_url": "https://yicai-health.oss-accelerate.aliyuncs.com/healthy_image/20220416_f3lOYlWXMAIarOo.png",
"duration": 1,
"train_status": 0
}
]
},
"error": []
}
```
## 2 体姿视频详情(视频详情)
| 属性 | 值 |
| ----------- | ---- |
| 请求方式 | POST|
| 测试URL | test.health.multilife.cn/api/user_wellness_plan/body_posture_course_detail|
| 发布URL | |
> 测试阶段 要注意数据获取 loading
##### 请求参数
| 字段 | 必填 | 类型 | 示例值 | 描述 |
| ---- | ---- | ---- | ------ | --------- |
| YICAI-TOKEN| 是 | string | 063uiNll2rMcE84EFhml2pGKMj1uiNlq | 通讯token header 中 |
|id| 是 | int| 1| 列表中的id|
##### 返回值
code 200,请求成功 数据正常
``` javascript
{
"status": "success",
"code": 200,
"msg": "",
"data": {
"detail": {
"id": 18,
"class_id": 1,
"class_name": "体姿管理",
"sport_tag": "",
"title": "第5天训练课程1",
"subtitle": "第5天训练课程1",
"video_url": "https://yicai-health.oss-accelerate.aliyuncs.com/16497548550003-3-27 体姿拉伸训练9_batch.mp4",
"duration": 3,
"level": "初级",
"content": "<p>第5天训练课程1</p><p>第5天训练课程1</p><p>第5天训练课程1</p><p>第5天训练课程1</p><p>第5天训练课程1</p><p>第5天训练课程1</p><p><br></p>",
"tools": "1/2/3/4",
"repeat_cnt": 6,
"day_no": 5
},
"prev_id": 0,
"next_id": 19,
"train_status": 0
},
"error": []
}
```