Weteach-小程序


课程课时列表

<p><strong>简要描述:</strong> </p> <ul> <li>课程课时列表接口</li> </ul> <p><strong>请求URL:</strong> </p> <ul> <li><code>http://xx.com/api/super/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> </tbody> </table> <p><strong>返回示例</strong></p> <pre><code>{ "result": "success", "data": { "current_page": 1, "data": [ { "id": 2595, "name": "008.1丨爱丽丝漫游奇境记:掉进兔子洞", "cover": "http://weteach.ufile.ucloud.com.cn/default-cover.png", "start_at": null, "is_free": 1, "type": "audio", "sort": 1 }, { "id": 2608, "name": "008.2丨爱丽丝漫游奇境记:泪水潭", "cover": "http://weteach.ufile.ucloud.com.cn/default-cover.png", "start_at": null, "is_free": 0, "type": "audio", "sort": 2 }, { "id": 2630, "name": "008.3丨爱丽丝漫游奇境记:和毛毛虫的谈话", "cover": "http://weteach.ufile.ucloud.com.cn/default-cover.png", "start_at": null, "is_free": 0, "type": "audio", "sort": 3 }, { "id": 2646, "name": "008.4丨爱丽丝漫游奇境记:切舍猫", "cover": "http://weteach.ufile.ucloud.com.cn/default-cover.png", "start_at": null, "is_free": 0, "type": "audio", "sort": 4 }, { "id": 2672, "name": "008.5丨爱丽丝漫游奇境记:疯狂的茶会(上)", "cover": "http://weteach.ufile.ucloud.com.cn/default-cover.png", "start_at": null, "is_free": 0, "type": "audio", "sort": 5 }, { "id": 2693, "name": "008.6丨爱丽丝漫游奇境记:疯狂的茶会(下)", "cover": "http://weteach.ufile.ucloud.com.cn/default-cover.png", "start_at": null, "is_free": 0, "type": "audio", "sort": 6 }, { "id": 2712, "name": "008.7丨爱丽丝漫游奇境记:王后的槌球游戏(上)", "cover": "http://weteach.ufile.ucloud.com.cn/default-cover.png", "start_at": null, "is_free": 0, "type": "audio", "sort": 7 }, { "id": 2733, "name": "008.8丨爱丽丝漫游奇境记:王后的槌球游戏(下)", "cover": "http://weteach.ufile.ucloud.com.cn/default-cover.png", "start_at": null, "is_free": 0, "type": "audio", "sort": 8 }, { "id": 2753, "name": "008.9丨爱丽丝漫游奇境记:谁偷了果馅饼(上)", "cover": "http://weteach.ufile.ucloud.com.cn/default-cover.png", "start_at": null, "is_free": 0, "type": "audio", "sort": 9 }, { "id": 2772, "name": "008.10丨爱丽丝漫游奇境记:谁偷了果馅饼(下)", "cover": "http://weteach.ufile.ucloud.com.cn/default-cover.png", "start_at": null, "is_free": 0, "type": "audio", "sort": 10 } ], "first_page_url": "http://192.168.99.13/api/super/course/133/lessons?page=1", "from": 1, "last_page": 1, "last_page_url": "http://192.168.99.13/api/super/course/133/lessons?page=1", "next_page_url": null, "path": "http://192.168.99.13/api/super/course/133/lessons", "per_page": 20, "prev_page_url": null, "to": 10, "total": 10, "order": null, "order_by": null }, "message": "操作成功", "ct": 1548051218 }</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>

页面列表

ITEM_HTML