评论列表
<p><strong>简要描述:</strong></p>
<ul>
<li>评论列表接口</li>
</ul>
<p><strong>请求URL:</strong></p>
<ul>
<li><code>/public/comments</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>tid</td>
<td>是</td>
<td>String</td>
<td>文章ID</td>
</tr>
<tr>
<td>page</td>
<td>是</td>
<td>String</td>
<td>查询的页数</td>
</tr>
<tr>
<td>limit</td>
<td>否</td>
<td>String</td>
<td>每页查询多少条,默认10条</td>
</tr>
</tbody>
</table>
<p><strong>返回示例</strong></p>
<pre><code> {
"code": 0,
"data": [{
"uid": "1",
"content": "评论内容",
"isBest": "0",
"isRead": "0" ,
"hands": "100",
"created": "2019-01-01 00:00:00",
"status ": "1",
"handed": "1"
},
"msg": "系统消息",
"total": 200
}]</code></pre>
<p><strong>返回参数说明</strong></p>
<table>
<thead>
<tr>
<th>参数名</th>
<th>类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>code</td>
<td>Number</td>
<td>200-成功,500-服务端返回的异常消息,取msg</td>
</tr>
<tr>
<td>data</td>
<td>Array</td>
<td>评论列表</td>
</tr>
<tr>
<td>msg</td>
<td>String</td>
<td>系统的消息数据</td>
</tr>
<tr>
<td>total</td>
<td>Number</td>
<td>总的评论数量</td>
</tr>
<tr>
<td>handed</td>
<td>String</td>
<td>0-未点赞,1-已点赞, 默认为 0或者空</td>
</tr>
</tbody>
</table>
<p><strong>备注</strong></p>
<ul>
<li>更多返回错误代码请看首页的错误代码描述</li>
</ul>