4.分页获取电视台点播资源与电视台直播资源
<p><strong>简要描述:</strong></p>
<ul>
<li>分页获取电视台点播资源与电视台直播资源</li>
</ul>
<p><strong>请求URL:</strong></p>
<ul>
<li><code>http://192.168.0.111:8083/RichCloud/appSchoolTv/getAppData.do</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;">apiKey</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">string</td>
<td>手机apikey</td>
</tr>
<tr>
<td style="text-align: left;">schoolId</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">string</td>
<td>学校Id</td>
</tr>
<tr>
<td style="text-align: left;">page</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">Integer</td>
<td>当前页</td>
</tr>
<tr>
<td style="text-align: left;">pageSize</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">Integer</td>
<td>每页数量</td>
</tr>
</tbody>
</table>
<p><strong>返回示例</strong></p>
<pre><code>{
{
"ResponseCode": 0,
"ResponseResult": "获取成功",
"ResponseObject": {
"livePages": {
"list": [],
"allRow": 0,
"totalPage": 0,
"currentPage": 0,
"pageSize": 10,
"hasPreviousPage": true,
"hasNextPage": false,
"firstPage": false,
"lastPage": true
},
"tvPages": {
"list": [
{
"id": 4,
"title": "单词的记忆法",
"introduction": "单词的记忆法",
"userId": 1,
"createTime": "2017-08-28 16:24:09.0",
"updateTime": "2018-11-01 19:56:00.0",
"clickCount": 26,
"score": 0,
"status": 1,
"resourceCoverPath": "http://richcloud.b0.upaiyun.com/schoolTv/3201140009/1/tv_img_1503907824540.png",
"resourcePath": "http://richcloud.b0.upaiyun.com/schoolTv/3201140009/1/tv_file_1503907824540_FLV.mp4",
"resourceSize": 102.837,
"schoolId": "3201140009",
"tvId": 5,
"chanelId": 6,
"userName": null
},
{
"id": 3,
"title": "白雪公主",
"introduction": "白雪公主(Snow White)是广泛流行于欧洲的一个童话故事中的人物,其中最著名的故事版本见于德国1812年的《格林童话》。讲述了白雪公主受到继母皇后(格林兄弟最初手稿中为生母)的虐待,逃到森林里,遇到七个小矮人的故事。历史学家巴特尔思据称白雪公主的历史原型是1725年生于德国西部美茵河畔洛尔城的玛利亚·索菲亚·冯·埃尔塔尔",
"userId": 1,
"createTime": "2017-08-28 15:58:03.0",
"updateTime": "2018-11-01 19:12:27.0",
"clickCount": 16,
"score": 0,
"status": 1,
"resourceCoverPath": "http://richcloud.b0.upaiyun.com/schoolTv/3201140009/1/tv_img_1503907004193.jpg",
"resourcePath": "http://richcloud.b0.upaiyun.com/schoolTv/3201140009/1/tv_file_1503907004193_mp3.mp4",
"resourceSize": 9.68746,
"schoolId": "3201140009",
"tvId": 3,
"chanelId": 4,
"userName": null
},
{
"id": 2,
"title": "桂林山水课程讲解",
"introduction": "语文桂林山水课程讲解",
"userId": 1,
"createTime": "2017-08-28 15:53:40.0",
"updateTime": "2018-10-30 20:49:20.0",
"clickCount": 15,
"score": 0,
"status": 1,
"resourceCoverPath": "http://richcloud.b0.upaiyun.com/schoolTv/3201140009/1/tv_img_1503906499333.png",
"resourcePath": "http://richcloud.b0.upaiyun.com/schoolTv/3201140009/1/tv_file_1503906499333_flv.mp4",
"resourceSize": 40.397,
"schoolId": "3201140009",
"tvId": 1,
"chanelId": 2,
"userName": null
}
],
"allRow": 3,
"totalPage": 1,
"currentPage": 1,
"pageSize": 10,
"hasPreviousPage": false,
"hasNextPage": false,
"firstPage": true,
"lastPage": true
}
}
}
}
附上电视台资源实体类:
public class TvResource
{
private int id;
private String title;
private String introduction;
private int userId;
private String createTime;
private String updateTime;
private int clickCount;
private int score;
private int status;// 状态(0,未审核,1,审核通过,2,审核不通过,3已删除)
private String resourceCoverPath;// 视频封面地址
private String resourcePath;
private float resourceSize;
private String schoolId;
private int tvId;// 电视台Id
private int chanelId;// 频道Id
private String userName;
}
</code></pre>
<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;">tvPages</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">其中的list为List<TvResource></td>
<td>电视台资源的列表。主要是一些视屏资源</td>
</tr>
<tr>
<td style="text-align: left;">livePages</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">其中的list为List<Live></td>
<td>电视台中的直播资源,当前有电视台进行直播的时候有数据。</td>
</tr>
</tbody>
</table>
<p><strong>备注</strong> </p>
<ul>
<li>更多返回错误代码请看首页的错误代码描述</li>
</ul>