首页更多-直播
<p><strong>简要描述:</strong> </p>
<ul>
<li>首页更多-直播</li>
</ul>
<p><strong>请求URL:</strong> </p>
<ul>
<li><code>http://xx.com/api/cli/home/column/{id}</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;">id</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">string</td>
<td>column id</td>
</tr>
</tbody>
</table>
<p><strong>返回示例</strong></p>
<pre><code> {
"result": "success",
"data": {
"current_page": 1,
"data": [
{
"id": 24,
"price": 1,
"stock": 111,
"event_start_at": null,
"event_end_at": null,
"created_at": "2018-11-12 18:12:11",
"event_price": 0,
"is_distribute": 1,
"distribute_bonus": 11,
"status": "publish",
"code": "ebdcbc921c7d7cda",
"name": "1",
"pre_sale": 0,
"poster": "",
"share_title": null,
"share_subtitle": null,
"share_image": null,
"is_groupon": 0,
"platform": "weteach",
"brief": "",
"cover": null,
"type": "live",
"live_status": "ready",
"live_online_users": 0,
"course": {
"id": 8,
"name": "直播测试",
"cover": "http://weteach.ufile.ucloud.com.cn/default-cover.png",
"brief": "",
"created_at": "2018-11-13 16:13:04",
"status": "publish",
"code": "3edaae9893d119a1",
"total_lesson": 1111,
"type": "live",
"erect_cover": "http://cdn.weteach.com/20180912171001.png",
"list_cover": "http://weteach.ufile.ucloud.com.cn/default-cover-square.png",
"quiz_type": "normal",
"teachers": [
{
"id": 2,
"name": "1",
"avatar": "http://weteach-stage.ufile.ucloud.com.cn/teacher/1542078074049.png",
"brief": "1"
}
],
"lesson_count": 4,
"free_lessons": []
},
"is_in_event": false,
"discount_price": null,
"next_live_at": "2018-12-05 00:00:00"
}
],
"first_page_url": "http://192.168.99.13/api/cli/home/column/1?page=1",
"from": 1,
"last_page": 1,
"last_page_url": "http://192.168.99.13/api/cli/home/column/1?page=1",
"next_page_url": null,
"path": "http://192.168.99.13/api/cli/home/column/1",
"per_page": 20,
"prev_page_url": null,
"to": 1,
"total": 1,
"order": null,
"order_by": null
},
"message": "操作成功",
"ct": 1542422881
}</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;">live_status</td>
<td style="text-align: left;">string</td>
<td>ready:待直播;living:直播中;end:直播结束</td>
</tr>
<tr>
<td style="text-align: left;">live_online_users</td>
<td style="text-align: left;">int</td>
<td>在线观看人数</td>
</tr>
<tr>
<td style="text-align: left;">next_live_at</td>
<td style="text-align: left;">date</td>
<td>下次直播开始时间</td>
</tr>
</tbody>
</table>
<p><strong>备注</strong> </p>
<ul>
<li>更多返回错误代码请看首页的错误代码描述</li>
</ul>
<p>欢迎使用ShowDoc!</p>