小程序接口
<h3>图文列表,通过主题列表拉取,标题为“简标题”,图为“推荐封面图</h3>
<p><strong> 获取小程序的主题列表 </strong></p>
<p>图文列表
<img src="https://www.showdoc.cc/server/api/common/visitfile/sign/6e8214fade121ba4134ac647936a0d7a?showdoc=.jpg" alt="" /></p>
<p><strong>请求URL:</strong> </p>
<ul>
<li>
<p>POST <code>/api/template/get_topic_list</code></p>
<p><strong>返回示例</strong></p>
</li>
</ul>
<pre><code>{
"msg": "查询成功!",
"data": {
"dataList": [
{
"article_num": 33,
"topic_info": {
"id": 2,
"appid": "wx49bae8f0d5c1719a",
"name": "💯视频排行榜",
"banner": "http:\/\/goclick.heywoodsminiprogram.com\/test\/images\/jpg\/2018122021847431.png",
"entry_aid": "[61148,14102]",
"sort": 1,
"state": 1,
"create_time": "2018-12-20 21:09:44",
"update_time": "2019-03-21 17:37:43"
},
"entry_aid": [...],
"entry_aid_json": [...]
}
]
}
}</code></pre>
<p><strong> 获取小程序某个主题的文章列表 </strong>
<strong>请求URL:</strong> </p>
<ul>
<li>POST <code>/api/topic/get_list</code></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;">topic_id</td>
<td style="text-align: left;">integer</td>
<td>主题id</td>
</tr>
<tr>
<td style="text-align: left;">openid</td>
<td style="text-align: left;">string</td>
<td>用户openid</td>
</tr>
</tbody>
</table>
<p><strong>返回示例</strong></p>
<pre><code>{
"msg": "查询成功!",
"data": {
"dataList": [
{
"article_id": 61148,
"title": "《想你一遍又一遍》你不在我的眼前,才懂得什么叫孤单!"
...
}
],
"topic_info": {
"id": 2,
"appid": "wx49bae8f0d5c1719a",
"name": "💯视频排行榜",
"banner": "http:\/\/goclick.heywoodsminiprogram.com\/test\/images\/jpg\/2018122021847431.png",
"entry_aid": "[61148,14102]",
"sort": 1,
"state": 1,
"create_time": "2018-12-20 21:09:44",
"update_time": "2019-03-21 17:37:43"
}
}
}</code></pre>
<h3>广告位 index01 、 广告位 bottom01</h3>
<p>广告系统文档 <a href="https://www.showdoc.cc/188142565018575?page_id=1073609837134389">https://www.showdoc.cc/188142565018575?page_id=1073609837134389</a></p>
<h3>拉取火爆热门主题列表</h3>
<p>直接拉取该小程序的所有主题,将几个主题通过写死的方式置顶</p>
<p><strong>请求URL:</strong> </p>
<ul>
<li>
<p>POST <code>/api/template/get_topic_list</code></p>
<p><strong>返回示例</strong>
上面有了</p>
</li>
</ul>