久久教育

微信小程序


获取历史记录

<p><strong>简要描述:</strong></p> <ul> <li>获取用户的观看记录</li> </ul> <p><strong>请求URL:</strong></p> <ul> <li><code>/history/{id}</code></li> </ul> <p><strong>请求方式:</strong></p> <ul> <li>GET</li> </ul> <p><strong>参数:</strong></p> <table> <thead> <tr> <th>参数名</th> <th>必选</th> <th>类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td>offset</td> <td>否</td> <td>int</td> <td>偏移量,默认0</td> </tr> <tr> <td>limit</td> <td>否</td> <td>int</td> <td>条数,默认5,最小1,最大20</td> </tr> </tbody> </table> <p><strong>返回示例</strong></p> <pre><code class="language-json">{ "data": [ { "id": 5, "class_id": 9, "class_name": "数组运用", "class_cover": "https://yp.jtcode.xyz//uploads/15476073311526305044.jpeg", "datetime": 1547607752 }, { "id": 4, "class_id": 2, "class_name": "变量和数据类型", "class_cover": "https://yp.jtcode.xyz//uploads/15476069591973083412.jpeg", "datetime": 1547607656 } ] }</code></pre> <p><strong>返回参数说明</strong></p> <table> <thead> <tr> <th>参数名</th> <th>类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td>id</td> <td>int</td> <td>课时id</td> </tr> <tr> <td>class_id</td> <td>string</td> <td>返回信息</td> </tr> <tr> <td>class_name</td> <td>string</td> <td>课时名称</td> </tr> <tr> <td>class_cover</td> <td>string</td> <td>课时封面</td> </tr> <tr> <td>datetime</td> <td>int</td> <td>观看时间</td> </tr> </tbody> </table> <p><strong>备注</strong></p> <ul> <li>请求URI最后需要学生id</li> </ul>

页面列表

ITEM_HTML