肌力提升
## 1 获取肌力提升本周课程
| 属性 | 值 |
| ----------- | ---- |
| 请求方式 | POST|
| 测试URL | health.yicai.com/api/user_wellness_plan/muscle_strength_courses|
| 发布URL | |
> 测试阶段 要注意数据获取 loading
##### 请求参数
| 字段 | 必填 | 类型 | 示例值 | 描述 |
| ---- | ---- | ---- | ------ | --------- |
| YICAI-TOKEN| 是 | string | 063uiNll2rMcE84EFhml2pGKMj1uiNlq | 通讯token header 中 |
##### 返回参数说明
| 字段 | 描述 |
| ---- | ---- |
##### 返回值
code 200,请求成功 数据正常
``` javascript
{
"status": "success",
"code": 200,
"msg": "",
"data": {
"times_arr": [//次数的数组
1,
2,
3
],
"last_unfinish_id": 10,//最后未完成的id 0代表全部完成
"courses": [
{
"id": 10,
"class_id": 2,
"class_name": "肌力肌耐力提升",
"week_no": 1,
"times_no": 1,//第几次 和 times_arr 中的值对应
"title": "肌力提示1",//主标题
"subtitle": "肌力提升2",//副标题
"level": "初级",
"tools": "1111/22/33/33",
"thumb_url": "https://yicai-health.oss-accelerate.aliyuncs.com/healthy_image/20220410_342K21cIbqVQU5Z.png",
"duration": 10,//课程时长 单位分钟
"train_status": 0//训练状态 0 未完成 1已完成
},
{
"id": 11,
"class_id": 2,
"class_name": "肌力肌耐力提升",
"week_no": 1,
"times_no": 1,
"title": "1-1",
"subtitle": "1-1",
"level": "初级",
"tools": "1",
"thumb_url": "https://yicai-health.oss-accelerate.aliyuncs.com/healthy_image/20220412_elMW7fQGDDag0S0.png",
"duration": 1,
"train_status": 0
},
{
"id": 21,
"class_id": 2,
"class_name": "肌力肌耐力提升",
"week_no": 1,
"times_no": 2,
"title": "肌耐力提升",
"subtitle": "肌耐力提升",
"level": "初级",
"tools": "1/2/3",
"thumb_url": "https://yicai-health.oss-accelerate.aliyuncs.com/healthy_image/20220412_j9Ke1OzuvBZ0AuA.png",
"duration": 4,
"train_status": 0
},
{
"id": 22,
"class_id": 2,
"class_name": "肌力肌耐力提升",
"week_no": 1,
"times_no": 2,
"title": "肌耐力提升",
"subtitle": "肌耐力提升",
"level": "初级",
"tools": "1/1/2/3",
"thumb_url": "https://yicai-health.oss-accelerate.aliyuncs.com/healthy_image/20220412_elMW7fQGDDag0S0.png",
"duration": 30,
"train_status": 0
},
{
"id": 23,
"class_id": 2,
"class_name": "肌力肌耐力提升",
"week_no": 1,
"times_no": 3,
"title": "肌力提升",
"subtitle": "肌力提升",
"level": "初级",
"tools": "1/1/1",
"thumb_url": "https://yicai-health.oss-accelerate.aliyuncs.com/healthy_image/20220409_gevlBKU5PQHn8ij.png",
"duration": 20,
"train_status": 0
},
{
"id": 24,
"class_id": 2,
"class_name": "肌力肌耐力提升",
"week_no": 1,
"times_no": 3,
"title": "肌力提升",
"subtitle": "肌力提升",
"level": "初级",
"tools": "11/11/11",
"thumb_url": "https://yicai-health.oss-accelerate.aliyuncs.com/healthy_image/20220410_wemjWjUFtWb1hIo.png",
"duration": 20,
"train_status": 0
}
]
},
"error": []
}
```
## 2 肌力视频详情(视频详情)
| 属性 | 值 |
| ----------- | ---- |
| 请求方式 | POST|
| 测试URL | test.health.multilife.cn/api/user_wellness_plan/muscle_strength_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": 10,
"class_id": 2,
"class_name": "肌力肌耐力提升",
"week_no": 1,
"times_no": 1,
"title": "肌力提示1",
"video_url": "https://yicai-health.oss-accelerate.aliyuncs.com/16495623460003-3-84_batch.mp4",
"repeat_cnt": 1,//重复次数
"repeat_interim_duration": 1,//次间歇时长 单位分钟
"tools": "1111/22/33/33",
"is_group": 0,//是否是按组练习 1是 0否 是 页面4个数据 否 页面3个数据
"group_desc": "",//组数步骤 按组练习 显示
"group_cnt": 0,//重复组数
"group_interim_duration": 0,//组间间歇
"content": "<p>1111</p>"
},
"prev_id": 0,//上一个id
"next_id": 11,//下一个id
"train_status": 0//当前训练完成状态 0未完成 1已完成
},
"error": []
}
```