7.分页获取评论内容
<p><strong>简要描述:</strong></p>
<ul>
<li>分页获取评论内容</li>
</ul>
<p><strong>请求URL:</strong></p>
<ul>
<li><code>http://192.168.0.111:8083/RichCloud/appSchoolTv/getTvCommentPages.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;">resourceId</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>{
"ResponseCode": 0,
"ResponseResult": "操作成功",
"ResponseObject": {
"list": [
{
"id": 3,
"content": "额头有点晕。,?。!?我们",
"userId": 307,
"resourceId": 833,
"createTime": 1541070709000,
"headImg": "http://img-avatar.richx.cn/user/307/a1516971642822-1359368029.jpg",
"userName": "陶明月",
"remark": null
},
{
"id": 2,
"content": "哦⊙∀⊙!",
"userId": 307,
"resourceId": 833,
"createTime": 1541070460000,
"headImg": "http://img-avatar.richx.cn/user/307/a1516971642822-1359368029.jpg",
"userName": "陶明月",
"remark": null
},
{
"id": 1,
"content": "饿了怎么办了吗哦",
"userId": 307,
"resourceId": 833,
"createTime": 1541070032000,
"headImg": "http://img-avatar.richx.cn/user/307/a1516971642822-1359368029.jpg",
"userName": "陶明月",
"remark": null
}
],
"allRow": 3,
"totalPage": 1,
"currentPage": 1,
"pageSize": 20,
"hasPreviousPage": false,
"hasNextPage": false,
"firstPage": true,
"lastPage": true
}
}
附上评论实体类:
public class TvComment implements Serializable{
private static final long serialVersionUID = 1L;
private Integer id;
private String content;//评论内容
private Integer userId;//用户ID
private Integer resourceId;//资源ID
private Date createTime;
private String headImg; //用户头像
private String userName;//用户名
private String remark;//备注,预留字段,暂时无用
}</code></pre>
<p><strong>返回参数说明</strong> </p>
<p><strong>备注</strong> </p>
<ul>
<li>更多返回错误代码请看首页的错误代码描述</li>
</ul>
<blockquote>
</blockquote>