课程课时的商品关联
<p><strong>简要描述:</strong> </p>
<ul>
<li>课程课时的商品关联</li>
</ul>
<p><strong>请求URL:</strong> </p>
<ul>
<li><code>http://xx.com/api/cli/commodities/related</code></li>
</ul>
<p><strong>请求方式:</strong></p>
<ul>
<li>GET </li>
</ul>
<p><strong>参数:</strong> </p>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">必选</th>
<th style="text-align: left;">类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">lesson_id</td>
<td style="text-align: left;">否</td>
<td style="text-align: left;">int</td>
<td>课时ID</td>
</tr>
<tr>
<td style="text-align: left;">course_id</td>
<td style="text-align: left;">否</td>
<td style="text-align: left;">int</td>
<td>课程ID</td>
</tr>
</tbody>
</table>
<p><strong>返回示例</strong></p>
<pre><code>{
"result": "success",
"data": [
{
"id": 432,
"price": 0.03,
"stock": null,
"event_start_at": null,
"event_end_at": null,
"code": "6d7c43bd750a9408",
"created_at": "2018-10-25 19:47:51",
"name": "苏教版听写 苏教版听写",
"event_price": 0,
"is_distribute": 0,
"distribute_bonus": 0,
"status": "publish",
"poster": "",
"pre_sale": {
"id": 174,
"commodity_id": 432,
"pre_price": 0.02,
"deposit": 0.01,
"pre_start_at": "2018-10-25 00:00:00",
"pre_end_at": "2018-10-25 19:50:59",
"pay_end_at": "2018-10-25 19:55:00",
"created_at": "2018-10-25 19:47:51",
"pay_start_notice": "Y",
"pay_end_notice": "Y"
},
"open_redeem_code": 0,
"share_title": null,
"share_subtitle": null,
"share_image": null,
"is_groupon": 0,
"brief": null,
"type": "video",
"course": {
"id": 122,
"name": "苏教版听写",
"cover": "http://learn-10047330.file.myqcloud.com/article/5b64707a-7c4c-4283-ae7c-4e4e8ebc0e55.jpg",
"brief": "<div style=\"color:#65a9fc;font-size:14px;line-height:1.33\">【专题简介】</div><br><div style=\"color:#333333;font-size:14px;line-height:1.33\">苏教版小学语文教材课本生词听写。提供规范发音,标准答案。是孩子听写的得力工具。</div><br><div style=\"color:#65a9fc;font-size:14px;line-height:1.33\">【专题亮点】</div><br><div style=\"color:#333333;font-size:14px;line-height:1.33\">听写是寓语言积累、学习习惯、思维品质、审美情趣为一体的实践性较强的语文学习活动。当前的听写教学仍存在着淡化、弱化、固化、窄化等问题。因此我们的视频在听写学习方面,给足时间、区分学段、活化形式,不断拓展听写的功能与形式,让听写训练在提升学生语文素养方面发挥应有的作用。</div><br><p><img src=\"http://learn-10047330.file.myqcloud.com/task/18ee0d38-7b12-4843-b855-1b9a70659421.png\"></p><br><div style=\"color:#65a9fc;font-size:14px;line-height:1.33\">【课程目标】</div><br><div style=\"color:#333333;font-size:14px;line-height:1.33\">1.掌握生字成词,让学生紧跟课堂节奏;<br>2.让学生强化词汇,文言解释,文学常识以及古诗文名句的积累;<br>3.改变学习中漏字、缺字、加字等不良习惯,体验成功的乐趣。</div><br><p><img src=\"http://learn-10047330.file.myqcloud.com/task/2bb996d7-0761-4500-b763-b5e55109a2d1.png\"></p><br><div style=\"color:#65a9fc;font-size:14px;line-height:1.33\">【适用人群】</div><br><div style=\"color:#333333;font-size:14px;line-height:1.33\">学习苏教版教材的小学阶段所有学生。</div><br>",
"status": "publish",
"created_at": "2018-08-17 17:15:10",
"code": "93ac5a3629699151",
"qr_path": null,
"total_lesson": 224,
"quiz_type": "normal",
"list_cover": "http://learn-10047330.file.myqcloud.com/article/5b64707a-7c4c-4283-ae7c-4e4e8ebc0e55.jpg",
"type": "video",
"erect_cover": "http://learn-10047330.file.myqcloud.com/article/5b64707a-7c4c-4283-ae7c-4e4e8ebc0e55.jpg",
"teachers": [
{
"id": 20,
"name": "大师组合组",
"avatar": "http://weteach-stage.ufile.ucloud.com.cn/teacher/1540192789650.png",
"brief": "测试名师统计"
}
],
"lesson_count": 224,
"free_lessons": []
},
"coupon": []
},
{
"id": 563,
"price": 22,
"stock": null,
"event_start_at": null,
"event_end_at": null,
"code": "944607186b00e8ea",
"created_at": "2018-12-05 15:25:42",
"name": "苏教版听写.团购",
"event_price": 0,
"is_distribute": 0,
"distribute_bonus": 0,
"status": "publish",
"poster": null,
"pre_sale": null,
"open_redeem_code": 0,
"share_title": null,
"share_subtitle": null,
"share_image": null,
"is_groupon": 1,
"brief": "",
"type": "video",
"course": {
"id": 122,
"name": "苏教版听写",
"cover": "http://learn-10047330.file.myqcloud.com/article/5b64707a-7c4c-4283-ae7c-4e4e8ebc0e55.jpg",
"brief": "<div style=\"color:#65a9fc;font-size:14px;line-height:1.33\">【专题简介】</div><br><div style=\"color:#333333;font-size:14px;line-height:1.33\">苏教版小学语文教材课本生词听写。提供规范发音,标准答案。是孩子听写的得力工具。</div><br><div style=\"color:#65a9fc;font-size:14px;line-height:1.33\">【专题亮点】</div><br><div style=\"color:#333333;font-size:14px;line-height:1.33\">听写是寓语言积累、学习习惯、思维品质、审美情趣为一体的实践性较强的语文学习活动。当前的听写教学仍存在着淡化、弱化、固化、窄化等问题。因此我们的视频在听写学习方面,给足时间、区分学段、活化形式,不断拓展听写的功能与形式,让听写训练在提升学生语文素养方面发挥应有的作用。</div><br><p><img src=\"http://learn-10047330.file.myqcloud.com/task/18ee0d38-7b12-4843-b855-1b9a70659421.png\"></p><br><div style=\"color:#65a9fc;font-size:14px;line-height:1.33\">【课程目标】</div><br><div style=\"color:#333333;font-size:14px;line-height:1.33\">1.掌握生字成词,让学生紧跟课堂节奏;<br>2.让学生强化词汇,文言解释,文学常识以及古诗文名句的积累;<br>3.改变学习中漏字、缺字、加字等不良习惯,体验成功的乐趣。</div><br><p><img src=\"http://learn-10047330.file.myqcloud.com/task/2bb996d7-0761-4500-b763-b5e55109a2d1.png\"></p><br><div style=\"color:#65a9fc;font-size:14px;line-height:1.33\">【适用人群】</div><br><div style=\"color:#333333;font-size:14px;line-height:1.33\">学习苏教版教材的小学阶段所有学生。</div><br>",
"status": "publish",
"created_at": "2018-08-17 17:15:10",
"code": "93ac5a3629699151",
"qr_path": null,
"total_lesson": 224,
"quiz_type": "normal",
"list_cover": "http://learn-10047330.file.myqcloud.com/article/5b64707a-7c4c-4283-ae7c-4e4e8ebc0e55.jpg",
"type": "video",
"erect_cover": "http://learn-10047330.file.myqcloud.com/article/5b64707a-7c4c-4283-ae7c-4e4e8ebc0e55.jpg",
"teachers": [
{
"id": 20,
"name": "大师组合组",
"avatar": "http://weteach-stage.ufile.ucloud.com.cn/teacher/1540192789650.png",
"brief": "测试名师统计"
}
],
"lesson_count": 224,
"free_lessons": []
},
"groupon": {
"id": 59,
"commodity_id": 563,
"price": 11,
"max_count": 3,
"duration": 2,
"start_at": "2018-12-05 00:00:00",
"end_at": "2018-12-06 23:59:59",
"created_at": "2018-12-05 15:26:27",
"new_join_only": 0
},
"coupon": []
}
],
"message": "操作成功",
"ct": 1545641520
}</code></pre>
<p><strong>返回参数说明</strong> </p>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">groupid</td>
<td style="text-align: left;">int</td>
<td>用户组id,1:超级管理员;2:普通用户</td>
</tr>
</tbody>
</table>
<p><strong>备注</strong> </p>
<ul>
<li>更多返回错误代码请看首页的错误代码描述</li>
</ul>
<p>欢迎使用ShowDoc!</p>