Weteach-小程序


APP首页-直播

<p><strong>简要描述:</strong> </p> <ul> <li>APP首页</li> </ul> <p><strong>请求URL:</strong> </p> <ul> <li><code>http://xx.com/api/cli/home/index</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;">home_column_id</td> <td style="text-align: left;">否</td> <td style="text-align: left;">int</td> <td></td> </tr> </tbody> </table> <p><strong>返回示例</strong></p> <pre><code>{ "result": "success", "data": { "banner": [], "home_column": [ { "id": 1, "sort": 1, "title": "直播", "type": "live", "created_at": "2018-11-11 11:12:24", "lives": [ { "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, "next_live_at": "2018-12-05", "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 } ] } ] }, "message": "操作成功", "ct": 1542422329 }</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>

页面列表

ITEM_HTML