OpenShamrock/assets/fav.html-af222ac6.js
2024-03-24 07:47:33 +00:00

45 lines
11 KiB
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import{_ as a}from"./plugin-vue_export-helper-c27b6911.js";import{o as n,c as s,e as t}from"./app-e0095480.js";const e={},o=t(`<div class="hint-container warning"><p class="hint-container-title">注意</p><p>这里的API处于实验性阶段不会进行大量维护和更新由于过于简单如果需要某些功能可以自行PR</p></div><h2 id="获取收藏列表" tabindex="-1"><a class="header-anchor" href="#获取收藏列表" aria-hidden="true">#</a> 获取收藏列表</h2><p>获取收藏列表</p><h3 id="api端点" tabindex="-1"><a class="header-anchor" href="#api端点" aria-hidden="true">#</a> API端点</h3><p><code>/fav/get_item_list</code> (HTTP)</p><p><code>fav.get_item_list</code> (WebSocket)</p><h2 id="参数" tabindex="-1"><a class="header-anchor" href="#参数" aria-hidden="true">#</a> 参数</h2><table><thead><tr><th>字段</th><th>类型</th><th>必须</th><th>说明</th><th>默认值</th></tr></thead><tbody><tr><td>page_size</td><td>int32</td><td>是</td><td>获取的数量</td><td></td></tr><tr><td>category</td><td>int32</td><td>是</td><td>分类</td><td></td></tr><tr><td>start_pos</td><td>int32</td><td>是</td><td>开始的位置</td><td></td></tr></tbody></table><h3 id="响应" tabindex="-1"><a class="header-anchor" href="#响应" aria-hidden="true">#</a> 响应</h3><div class="language-json line-numbers-mode" data-ext="json"><pre class="language-json"><code><span class="token punctuation">{</span>
<span class="token property">&quot;status&quot;</span><span class="token operator">:</span> <span class="token string">&quot;ok&quot;</span><span class="token punctuation">,</span>
<span class="token property">&quot;retcode&quot;</span><span class="token operator">:</span> <span class="token number">0</span><span class="token punctuation">,</span>
<span class="token property">&quot;data&quot;</span><span class="token operator">:</span> <span class="token punctuation">{</span>
<span class="token property">&quot;items&quot;</span><span class="token operator">:</span> <span class="token punctuation">[</span>
<span class="token punctuation">{</span>
<span class="token property">&quot;id&quot;</span><span class="token operator">:</span> <span class="token string">&quot;1-1-9dec6664-dcb7-4b46-986f-xxxxxx&quot;</span><span class="token punctuation">,</span>
<span class="token property">&quot;author_type&quot;</span><span class="token operator">:</span> <span class="token number">2</span><span class="token punctuation">,</span>
<span class="token property">&quot;author&quot;</span><span class="token operator">:</span> <span class="token number">2806922524</span><span class="token punctuation">,</span>
<span class="token property">&quot;author_name&quot;</span><span class="token operator">:</span> <span class="token string">&quot;2806922524&quot;</span><span class="token punctuation">,</span>
<span class="token property">&quot;group_name&quot;</span><span class="token operator">:</span> <span class="token string">&quot;ˢʰᵃᵐʳᵒᶜᵏ&quot;</span><span class="token punctuation">,</span>
<span class="token property">&quot;group_id&quot;</span><span class="token operator">:</span> <span class="token number">333425833</span><span class="token punctuation">,</span>
<span class="token property">&quot;client_version&quot;</span><span class="token operator">:</span> <span class="token string">&quot;8.9.12820&quot;</span><span class="token punctuation">,</span>
<span class="token property">&quot;time&quot;</span><span class="token operator">:</span> <span class="token number">1703004793000</span>
<span class="token punctuation">}</span>
<span class="token punctuation">]</span>
<span class="token punctuation">}</span><span class="token punctuation">,</span>
<span class="token property">&quot;echo&quot;</span><span class="token operator">:</span> <span class="token string">&quot;&quot;</span>
<span class="token punctuation">}</span>
</code></pre><div class="line-numbers" aria-hidden="true"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div></div></div><h2 id="获取指定收藏的内容" tabindex="-1"><a class="header-anchor" href="#获取指定收藏的内容" aria-hidden="true">#</a> 获取指定收藏的内容</h2><p>获取收藏内容</p><h3 id="api端点-1" tabindex="-1"><a class="header-anchor" href="#api端点-1" aria-hidden="true">#</a> API端点</h3><p><code>/fav/get_item_content</code> (HTTP)</p><p><code>fav.get_item_content</code> (WebSocket)</p><h2 id="参数-1" tabindex="-1"><a class="header-anchor" href="#参数-1" aria-hidden="true">#</a> 参数</h2><table><thead><tr><th>字段</th><th>类型</th><th>必须</th><th>说明</th><th>默认值</th></tr></thead><tbody><tr><td>id</td><td>string</td><td>是</td><td>id</td><td></td></tr></tbody></table><h3 id="响应-1" tabindex="-1"><a class="header-anchor" href="#响应-1" aria-hidden="true">#</a> 响应</h3><div class="language-json line-numbers-mode" data-ext="json"><pre class="language-json"><code><span class="token punctuation">{</span>
<span class="token property">&quot;status&quot;</span><span class="token operator">:</span> <span class="token string">&quot;ok&quot;</span><span class="token punctuation">,</span>
<span class="token property">&quot;retcode&quot;</span><span class="token operator">:</span> <span class="token number">0</span><span class="token punctuation">,</span>
<span class="token property">&quot;data&quot;</span><span class="token operator">:</span> <span class="token punctuation">{</span>
<span class="token property">&quot;content&quot;</span><span class="token operator">:</span> <span class="token string">&quot;在想可不可以在手机上跑bot&quot;</span>
<span class="token punctuation">}</span><span class="token punctuation">,</span>
<span class="token property">&quot;echo&quot;</span><span class="token operator">:</span> <span class="token string">&quot;&quot;</span>
<span class="token punctuation">}</span>
</code></pre><div class="line-numbers" aria-hidden="true"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div></div></div><h2 id="添加文本收藏" tabindex="-1"><a class="header-anchor" href="#添加文本收藏" aria-hidden="true">#</a> 添加文本收藏</h2><p>添加一段文字到QQ收藏</p><h3 id="api端点-2" tabindex="-1"><a class="header-anchor" href="#api端点-2" aria-hidden="true">#</a> API端点</h3><p><code>/fav/add_text_msg</code> (HTTP)</p><p><code>fav.add_text_msg</code> (WebSocket)</p><h2 id="参数-2" tabindex="-1"><a class="header-anchor" href="#参数-2" aria-hidden="true">#</a> 参数</h2><table><thead><tr><th>字段</th><th>类型</th><th>必须</th><th>说明</th><th>默认值</th></tr></thead><tbody><tr><td>content</td><td>string</td><td>是</td><td>内容</td><td></td></tr></tbody></table><h3 id="响应-2" tabindex="-1"><a class="header-anchor" href="#响应-2" aria-hidden="true">#</a> 响应</h3><div class="language-json line-numbers-mode" data-ext="json"><pre class="language-json"><code><span class="token punctuation">{</span>
<span class="token property">&quot;status&quot;</span><span class="token operator">:</span> <span class="token string">&quot;ok&quot;</span><span class="token punctuation">,</span>
<span class="token property">&quot;retcode&quot;</span><span class="token operator">:</span> <span class="token number">0</span><span class="token punctuation">,</span>
<span class="token property">&quot;data&quot;</span><span class="token operator">:</span> <span class="token punctuation">{</span>
<span class="token property">&quot;id&quot;</span><span class="token operator">:</span> <span class="token string">&quot;xxxxxxxx&quot;</span>
<span class="token punctuation">}</span><span class="token punctuation">,</span>
<span class="token property">&quot;echo&quot;</span><span class="token operator">:</span> <span class="token string">&quot;&quot;</span>
<span class="token punctuation">}</span>
</code></pre><div class="line-numbers" aria-hidden="true"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div></div></div><h2 id="添加图片收藏" tabindex="-1"><a class="header-anchor" href="#添加图片收藏" aria-hidden="true">#</a> 添加图片收藏</h2><p>添加一个图片到QQ收藏</p><h3 id="api端点-3" tabindex="-1"><a class="header-anchor" href="#api端点-3" aria-hidden="true">#</a> API端点</h3><p><code>/fav/add_image_msg</code> (HTTP)</p><p><code>fav.add_image_msg</code> (WebSocket)</p><h2 id="参数-3" tabindex="-1"><a class="header-anchor" href="#参数-3" aria-hidden="true">#</a> 参数</h2><table><thead><tr><th>字段</th><th>类型</th><th>必须</th><th>说明</th><th>默认值</th></tr></thead><tbody><tr><td>file</td><td>string</td><td>是</td><td>图片base64或者绝对路径或者URL</td><td></td></tr></tbody></table><h3 id="响应-3" tabindex="-1"><a class="header-anchor" href="#响应-3" aria-hidden="true">#</a> 响应</h3><div class="language-json line-numbers-mode" data-ext="json"><pre class="language-json"><code><span class="token punctuation">{</span>
<span class="token property">&quot;status&quot;</span><span class="token operator">:</span> <span class="token string">&quot;ok&quot;</span><span class="token punctuation">,</span>
<span class="token property">&quot;retcode&quot;</span><span class="token operator">:</span> <span class="token number">0</span><span class="token punctuation">,</span>
<span class="token property">&quot;data&quot;</span><span class="token operator">:</span> <span class="token punctuation">{</span>
<span class="token property">&quot;id&quot;</span><span class="token operator">:</span> <span class="token string">&quot;xxxxxxxx&quot;</span>
<span class="token punctuation">}</span><span class="token punctuation">,</span>
<span class="token property">&quot;echo&quot;</span><span class="token operator">:</span> <span class="token string">&quot;&quot;</span>
<span class="token punctuation">}</span>
</code></pre><div class="line-numbers" aria-hidden="true"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div></div></div>`,37),p=[o];function r(d,i){return n(),s("div",null,p)}const u=a(e,[["render",r],["__file","fav.html.vue"]]);export{u as default};