列表
<h3>HTTP Request ( 请求路径 )</h3>
<pre><code class="language-shell"> GET http://xxxx.com/api/v1/announces</code></pre>
<blockquote>
<h3>URL Parameters ( 请求参数 )</h3>
<table>
<thead>
<tr>
<th style="text-align: center;">参数</th>
<th style="text-align: center;">必填</th>
<th style="text-align: center;">描述</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: center;">user_token</td>
<td style="text-align: center;">true</td>
<td style="text-align: center;">用户身份</td>
</tr>
<tr>
<td style="text-align: center;">category</td>
<td style="text-align: center;">false</td>
<td style="text-align: center;">类型</td>
</tr>
<tr>
<td style="text-align: center;">plate_id</td>
<td style="text-align: center;">false</td>
<td style="text-align: center;">板块</td>
</tr>
</tbody>
</table>
<p>参数描述</p>
<ul>
<li>分享类型(category)
["板块主页置顶公告", "index_page"]
["板块详情页置顶公告", "show_page"]
["web首页置顶公告", "web_root_page"],
["web飞单详情公告", "web_show_page"],
["app飞单详情公告", "app_show_page"],
["首页置顶公告", "root_page"]</li>
</ul>
</blockquote>
<p>once_day 总是弹出: “always”, 每天: “today”,close: “不弹出”
is_exp 会员过期后 true 过期前 false
poster 图片
plate_id 板块,为空是全部</p>
<blockquote>
<pre><code class="language-json">{
"filters": [
{"name": "title", "query": "上海"},
{"name": "category", "query": "index_page"}
]
}</code></pre>
</blockquote>
<h3>HTTP Respond ( 响应 )</h3>
<pre><code class="language-json">{
"code": 200,
"total_pages": 1,
"current_page": 1,
"data": [
{
"id": 2,
"title": "上海",
"category": "show_page",
"content": "我是长文本",
"link_to": "http://localhost:3000/backend/announces",
"istop": true,
"once_day": "always",
"plate_id": null,
"is_exp": true,
"poster_url": "http://staging-cdn.huoyuanduo.net/announce/2022/a18c2c09b7335f2694efa2dc54c824fa.jpg?e=1654815611&token=ymyU4nA_No1bIYugtG0-QUj0vLN0uhXTWd9TERb2:ewGjQCm99qiMXJidy1wsdDN2J18="
},
{
"id": 1,
"title": "测试",
"category": "index_page",
"content": "我是长文本",
"link_to": "https://v3.bootcss.com/components/#breadcrumbs",
"istop": true, "once_day": "always",
"plate_id": null,
"is_exp": true,
"poster_url": "http://staging-cdn.huoyuanduo.net/announce/2022/a18c2c09b7335f2694efa2dc54c824fa.jpg?e=1654815611&token=ymyU4nA_No1bIYugtG0-QUj0vLN0uhXTWd9TERb2:ewGjQCm99qiMXJidy1wsdDN2J18="
}
]
}</code></pre>