查询讨论列表
<p>[TOC]</p>
<h5>简要描述</h5>
<ul>
<li>用户注册接口</li>
</ul>
<h5>请求URL</h5>
<ul>
<li><code>localhost:7004/discuss/getList/{searchType}/{page}/{pageSize}</code></li>
</ul>
<h5>请求方式</h5>
<ul>
<li>get </li>
</ul>
<h5>参数</h5>
<p>searchType : 搜索类型 1关注 2 最热 3 最新</p>
<h5>返回示例</h5>
<pre><code> {
"status": 1,
"msg": "操作成功",
"code": "SUCCESS",
"result": {
"total": 2,
"list": [
{
"id": 2,
"userId": 1,
"content": "这玩意儿真好",
"img1Url": "http://image.hrwallet.xyz/group1/M00/1D/A3/CjVtAWF3ZbuAY_nhAAEKL3XrS50281.png",
"img2Url": "http://image.hrwallet.xyz/group1/M00/1D/A3/CjVtAWF3ZbuAY_nhAAEKL3XrS50281.png",
"img3Url": "http://image.hrwallet.xyz/group1/M00/1D/A3/CjVtAWF3ZbuAY_nhAAEKL3XrS50281.png",
"createTime": "2022-01-18T05:49:23.000+0000",
"updateTime": "2022-01-18T05:49:23.000+0000",
"thumbupNum": 0,
"commentNum": 0,
"myThumbupId": null,
"myCommentId": null,
"userName": "碳碳", -- 用户名
"briefIntroduction": null, 简介
"headImg": null, 用户头像
"searchType": null
},
{
"id": 1,
"userId": 1,
"content": "这是发现1",
"img1Url": "http://image.hrwallet.xyz/group1/M00/1D/A3/CjVtAWF3ZbuAY_nhAAEKL3XrS50281.png",
"img2Url": "http://image.hrwallet.xyz/group1/M00/1D/A3/CjVtAWF3ZbuAY_nhAAEKL3XrS50281.png",
"img3Url": "http://image.hrwallet.xyz/group1/M00/1D/A3/CjVtAWF3ZbuAY_nhAAEKL3XrS50281.png",
"createTime": "2022-01-18T02:39:56.000+0000",
"updateTime": "2022-01-18T02:39:58.000+0000",
"thumbupNum": 0,
"commentNum": 0,
"myThumbupId": null,
"myCommentId": null,
"userName": "碳碳",
"briefIntroduction": null,
"headImg": null,
"searchType": null
}
],
"pageNum": 1,
"pageSize": 2,
"size": 2,
"startRow": 1,
"endRow": 2,
"pages": 1,
"prePage": 0,
"nextPage": 0,
"isFirstPage": true,
"isLastPage": true,
"hasPreviousPage": false,
"hasNextPage": false,
"navigatePages": 8,
"navigatepageNums": [
1
],
"navigateFirstPage": 1,
"navigateLastPage": 1
}
}</code></pre>
<h5>返回参数说明</h5>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">groupid</td>
<td style="text-align: left;">int</td>
<td>用户组id,1:超级管理员;2:普通用户</td>
</tr>
</tbody>
</table>
<h5>备注</h5>
<ul>
<li>更多返回错误代码请看首页的错误代码描述</li>
</ul>