获取指定文章
<h4>用户获取指定文章</h4>
<p><strong>请求URL:</strong> </p>
<ul>
<li><code>/api/xxq/getArticle</code></li>
</ul>
<p><strong>请求方式:</strong></p>
<ul>
<li>GET </li>
</ul>
<p><strong>参数:</strong> </p>
<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;">openid</td>
<td style="text-align: left;">string</td>
<td>用户openid</td>
</tr>
<tr>
<td style="text-align: left;">id</td>
<td style="text-align: left;">integer</td>
<td>文章id</td>
</tr>
</tbody>
</table>
<p><strong>备注:</strong>
请求该接口的同时会记录 pv 和 uv</p>
<p><strong>返回示例</strong></p>
<pre><code>{
"msg": "获取成功",
"data": [
{
"_id": {
"$oid": "5ce60ee6a9d2c444351587b4"
},
"title": "",
"article_type": 5,
"author_id": "123",
"status": 0,
"image_list": {
"index_thumb": "http://",
"share_thumb": "http://"
},
"link": "http://",
"video_id": "1",
"cover_url": "http://",
"width": "1280",
"height": "720",
"index_thumb_width": "320",
"index_thumb_height": "180",
"created_at": "2019-05-23 11:09:26",
"updated_at": "2019-05-23 11:09:26",
"tags": null,
"author_name": null,
"handle_status": null,
"image_urls": null,
"music": null,
"published_at": null,
"deleted_at": null,
"deleted_by": null,
"audited_by": null,
"pv": 1,
"uv": 0,
"commend_num": 0,
"share_num": 0,
"is_commend": false,
"is_block": false,
"is_my": false,
"article_id": 10051,
"author_info": {
"author": "",
"logo": ""
}
}
],
"code": 1,
"state": true
}</code></pre>