Weteach-小程序


课时列表

<p><strong>简要描述:</strong> </p> <ul> <li>课时列表接口</li> </ul> <p><strong>请求URL:</strong> </p> <ul> <li><code>http://xx.com/api/cli/course/{id}/lessons</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>课程ID</td> </tr> <tr> <td style="text-align: left;">order</td> <td style="text-align: left;">否</td> <td style="text-align: left;">string</td> <td>asc:顺序;desc:倒序</td> </tr> <tr> <td style="text-align: left;">need_status</td> <td style="text-align: left;">否</td> <td style="text-align: left;">string</td> <td>学习状态显示,true;false</td> </tr> </tbody> </table> <p><strong>返回示例</strong></p> <pre><code>{ "result": "success", "data": { "current_page": 1, "data": [ { "id": 3, "name": "test", "cover": "", "start_at": null }, { "id": 2, "name": "TEST", "cover": null, "start_at": "2018-06-04 16:21:15" } ], "first_page_url": "http://localhost/api/cli/course/031283499c1acd8b/lessons?page=1", "from": 1, "last_page": 1, "last_page_url": "http://localhost/api/cli/course/031283499c1acd8b/lessons?page=1", "next_page_url": null, "path": "http://localhost/api/cli/course/031283499c1acd8b/lessons", "per_page": 20, "prev_page_url": null, "to": 2, "total": 2 }, "message": "操作成功" } { "result": "success", "data": { "current_page": 1, "data": [ { "id": 56, "name": "asd", "lesson_name": null, "cover": "http://weteach-stage.ufile.ucloud.com.cn/live_detail/1542190645384.png", "start_at": "2018-12-13 00:00:00", "is_free": 0, "sort": 0, "type": "live", "live_status": "ready" } ], "first_page_url": "http://192.168.99.13/api/cli/course/8/lessons?page=1", "from": 1, "last_page": 1, "last_page_url": "http://192.168.99.13/api/cli/course/8/lessons?page=1", "next_page_url": null, "path": "http://192.168.99.13/api/cli/course/8/lessons", "per_page": 20, "prev_page_url": null, "to": 1, "total": 1, "order": null, "order_by": null }, "message": "操作成功", "ct": 1542280935 } </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:直播中;stop:已结束</td> </tr> </tbody> </table> <p><strong>备注</strong> </p> <ul> <li>更多返回错误代码请看首页的错误代码描述</li> </ul> <p>欢迎使用ShowDoc!</p>

页面列表

ITEM_HTML