攻略分享
<p>[toc]</p>
<h2>POST 攻略分享</h2>
<p>POST /localhost:9000/article/strategies/share</p>
<blockquote>
<p>Body 请求参数</p>
</blockquote>
<pre><code class="language-yaml">sid: "1"
</code></pre>
<h3>请求参数</h3>
<table>
<thead>
<tr>
<th>名称</th>
<th>位置</th>
<th>类型</th>
<th>必选</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>» sid</td>
<td>body</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": {
"viewnum": 11,
"replynum": 1,
"favornum": 1,
"sharenum": 2,
"thumbsupnum": 1,
"articleId": 1
}
}</code></pre>
<h3>返回结果</h3>
<table>
<thead>
<tr>
<th>参数名</th>
<th>类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>viewnum</td>
<td>int</td>
<td>浏览数</td>
</tr>
<tr>
<td>replynum</td>
<td>int</td>
<td>评论数</td>
</tr>
<tr>
<td>favornum</td>
<td>int</td>
<td>收藏数</td>
</tr>
<tr>
<td>sharenum</td>
<td>int</td>
<td>分享数</td>
</tr>
<tr>
<td>thumbsupnum</td>
<td>int</td>
<td>置顶数</td>
</tr>
<tr>
<td>articleId</td>
<td>long</td>
<td>攻略Id</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>