查看回答内容
<p>[toc]</p>
<h2>GET 查看回答问题详情</h2>
<p>GET /localhost:9000/answer/answer/content</p>
<h3>请求参数</h3>
<table>
<thead>
<tr>
<th>名称</th>
<th>位置</th>
<th>类型</th>
<th>必选</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>query</td>
<td>string</td>
<td>是</td>
<td>回答问题id</td>
</tr>
</tbody>
</table>
<blockquote>
<p>返回示例</p>
<p>成功</p>
</blockquote>
<pre><code class="language-json">{
"msg": "success",
"code": 200,
"data": {
"id": 1,
"questionId": "2",
"userId": 1,
"content": "666666666666",
"state": 0,
"thumbsupnum": 1,
"starnum": 1,
"createTime": "2023-01-03",
"updateTime": "2023-01-13",
"url": null,
"userName": null
}
}</code></pre>
<h3>返回结果</h3>
<table>
<thead>
<tr>
<th>参数名</th>
<th>类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>long</td>
<td>回答id</td>
</tr>
<tr>
<td>questionId</td>
<td>回答的问题</td>
</tr>
<tr>
<td>userId</td>
<td>long</td>
<td>回答的用户</td>
</tr>
<tr>
<td>userName</td>
<td>string</td>
<td>用户名称</td>
</tr>
<tr>
<td>url</td>
<td>string用户头像</td>
</tr>
<tr>
<td>content</td>
<td>string</td>
<td>回复的内容</td>
</tr>
<tr>
<td>state</td>
<td>int</td>
<td>状态 -1 删除 0 正常</td>
</tr>
<tr>
<td>thumbsupnum</td>
<td>int</td>
<td>点赞量</td>
</tr>
<tr>
<td>starnum</td>
<td>int</td>
<td>收藏量</td>
</tr>
<tr>
<td>createTime</td>
<td>string</td>
<td>创建时间</td>
</tr>
<tr>
<td>updateTime</td>
<td>string</td>
<td>修改时间</td>
</tr>
</tbody>
</table>
<table>
<thead>
<tr>
<th>状态码</th>
<th>状态码含义</th>
<th>说明</th>
<th>数据模型</th>
</tr>
</thead>
<tbody>
<tr>
<td>200</td>
<td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
<td>成功</td>
<td>Inline</td>
</tr>
</tbody>
</table>