专技天下(前台web端接口文档)

专技天下(前台web端接口文档)


上一课下一课---雷俊

<p><strong>简要描述:</strong> </p> <p><strong>请求URL:</strong> </p> <ul> <li><code>http://xx.com/class/classLibrary/previousAndAfterVideo</code></li> </ul> <p><strong>请求方式:</strong></p> <ul> <li>POST </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;">cid</td> <td style="text-align: left;">是</td> <td style="text-align: left;">Integer</td> <td>课程id</td> </tr> </tbody> </table> <p><strong> 请求示例</strong></p> <pre><code> { "data": { "cid":1 } }</code></pre> <p><strong> 返回示例</strong></p> <pre><code>{ "data": [ { "id": 3, "cid": 1, "chapterName": "名字", "sorts": 1, "cover": "https://sxtx-authorclasslibrary.oss-cn-beijing.aliyuncs.com/classLibrary/img/178ad137e741455880f4314e6bb49daf.png", "mp4Url": "https://sxtx-authorclasslibrary.oss-cn-beijing.aliyuncs.com/zsw/0ckBqy/93002e7c1e4140e4ba9fbb8804f0c442.mp4", "m3u8Url": "https://sxtx-authorclasslibrary.oss-cn-beijing.aliyuncs.com/zsw/0ckBqy/9c7b444c44de4ddaa4b84c08c83eb9cc/output.m3u8", "csection": 1 }, { "id": 4, "cid": 1, "chapterName": "名字", "sorts": 1, "cover": "https://sxtx-authorclasslibrary.oss-cn-beijing.aliyuncs.com/classLibrary/img/c1b6585eff1e4b98b0e0a617b95bac9e.png", "mp4Url": "https://sxtx-authorclasslibrary.oss-cn-beijing.aliyuncs.com/zsw/0ckBqy/e4427a4d8fca4702b29652fc2332b5bc.mp4", "m3u8Url": "https://sxtx-authorclasslibrary.oss-cn-beijing.aliyuncs.com/zsw/0ckBqy/11396a65438a4e5188303450907d6d18/output.m3u8", "csection": 2 }, { "id": 1, "cid": 1, "chapterName": "名字", "sorts": 2, "cover": "https://sxtx-authorclasslibrary.oss-cn-beijing.aliyuncs.com/classLibrary/img/178ad137e741455880f4314e6bb49daf.png", "mp4Url": "https://sxtx-authorclasslibrary.oss-cn-beijing.aliyuncs.com/zsw/0ckBqy/93002e7c1e4140e4ba9fbb8804f0c442.mp4", "m3u8Url": "https://sxtx-authorclasslibrary.oss-cn-beijing.aliyuncs.com/zsw/0ckBqy/9c7b444c44de4ddaa4b84c08c83eb9cc/output.m3u8", "csection": 1 }, { "id": 2, "cid": 1, "chapterName": "名字", "sorts": 2, "cover": "https://sxtx-authorclasslibrary.oss-cn-beijing.aliyuncs.com/classLibrary/img/c1b6585eff1e4b98b0e0a617b95bac9e.png", "mp4Url": "https://sxtx-authorclasslibrary.oss-cn-beijing.aliyuncs.com/zsw/0ckBqy/e4427a4d8fca4702b29652fc2332b5bc.mp4", "m3u8Url": "https://sxtx-authorclasslibrary.oss-cn-beijing.aliyuncs.com/zsw/0ckBqy/11396a65438a4e5188303450907d6d18/output.m3u8", "csection": 2 } ], "message": { "errinfo": "success", "errcode": 200 } }</code></pre> <pre><code> ** 返回参数说明** |参数名|类型|说明| |:----- |:-----|----- | |id|integer| | |cid |integer |课程id | |sorts|integer|章节序号| |chapterName|String|chapter_name| |cover |String |课件封面 | |csection|integer|节| |mp4Url|String|mp4地址| |m3u8Url|String|m3u8地址| **错误码说明** |参数名|说明| |:----- |:-----| |200|访问正常| |404|访问错误| |720|cid 课程 id 不能为空| - 更多返回错误代码请看首页的错误代码描述 欢迎使用ShowDoc!**</code></pre>

页面列表

ITEM_HTML