帖子列表
<blockquote>
<p>[GET] /postList</p>
</blockquote>
<h3>request</h3>
<pre><code>{
"userID": int
}</code></pre>
<p>如果<code>userID</code>为null,那么后端传帖子列表数据的所有isLike全为false</p>
<h3>response</h3>
<pre><code>{
"success": bool, // 1代表登录成功
"data": [
{
"postID": int,
"title": String,
"author": String,
"content": String, // 30字
"tagID": int,
"isLike": bool,
"likeNum": int,
"commentNum": int,
"lastTime": String, // 毫秒数
},
{
...
}
]
"code": [状态码],
"msg": String
}</code></pre>