1
0
forked from bot/app
LiteyukiBot/assets/model.html-D2ZhprMM.js

9 lines
7.6 KiB
JavaScript
Raw Normal View History

import{_ as e,o as a,c as t,e as r}from"./app-DeoZdSx1.js";const l={},s=r(`<h3 id="class-plugintype-enum" tabindex="-1"><a class="header-anchor" href="#class-plugintype-enum"><span><em><strong>class</strong></em> <code>PluginType(Enum)</code></span></a></h3><p>插件类型枚举值</p><h3 id="attr-application-application" tabindex="-1"><a class="header-anchor" href="#attr-application-application"><span> <em><strong>attr</strong></em> <code>APPLICATION: &#39;application&#39;</code></span></a></h3><h3 id="attr-service-service" tabindex="-1"><a class="header-anchor" href="#attr-service-service"><span> <em><strong>attr</strong></em> <code>SERVICE: &#39;service&#39;</code></span></a></h3><h3 id="attr-module-module" tabindex="-1"><a class="header-anchor" href="#attr-module-module"><span> <em><strong>attr</strong></em> <code>MODULE: &#39;module&#39;</code></span></a></h3><h3 id="attr-unclassified-unclassified" tabindex="-1"><a class="header-anchor" href="#attr-unclassified-unclassified"><span> <em><strong>attr</strong></em> <code>UNCLASSIFIED: &#39;unclassified&#39;</code></span></a></h3><h3 id="attr-test-test" tabindex="-1"><a class="header-anchor" href="#attr-test-test"><span> <em><strong>attr</strong></em> <code>TEST: &#39;test&#39;</code></span></a></h3><h3 id="class-pluginmetadata-basemodel" tabindex="-1"><a class="header-anchor" href="#class-pluginmetadata-basemodel"><span><em><strong>class</strong></em> <code>PluginMetadata(BaseModel)</code></span></a></h3><p>轻雪插件元数据由插件编写者提供name为必填项</p><p>Attributes:</p><hr><p>name: str</p><pre><code>插件名称
</code></pre><p>description: str</p><pre><code>
</code></pre><p>usage: str</p><pre><code>使
</code></pre><p>type: str</p><pre><code>
</code></pre><p>author: str</p><pre><code>
</code></pre><p>homepage: str</p><pre><code>
</code></pre><p>extra: dict[str, Any]</p><pre><code>
</code></pre><h3 id="class-plugin-basemodel" tabindex="-1"><a class="header-anchor" href="#class-plugin-basemodel"><span><em><strong>class</strong></em> <code>Plugin(BaseModel)</code></span></a></h3><p></p><h3 id="attr-model-config-arbitrary-types-allowed-true" tabindex="-1"><a class="header-anchor" href="#attr-model-config-arbitrary-types-allowed-true"><span> <em><strong>attr</strong></em> <code>model_config: {&#39;arbitrary_types_allowed&#39;: True}</code></span></a></h3><h3 id="var-application-application" tabindex="-1"><a class="header-anchor" href="#var-application-application"><span><em><strong>var</strong></em> <code>APPLICATION = &#39;application&#39;</code></span></a></h3><h3 id="var-service-service" tabindex="-1"><a class="header-anchor" href="#var-service-service"><span><em><strong>var</strong></em> <code>SERVICE = &#39;service&#39;</code></span></a></h3><h3 id="var-module-module" tabindex="-1"><a class="header-anchor" href="#var-module-module"><span><em><strong>var</strong></em> <code>MODULE = &#39;module&#39;</code></span></a></h3><h3 id="var-unclassified-unclassified" tabindex="-1"><a class="header-anchor" href="#var-unclassified-unclassified"><span><em><strong>var</strong></em> <code>UNCLASSIFIED = &#39;unclassified&#39;</code></span></a></h3><h3 id="var-test-test" tabindex="-1"><a class="header-anchor" href="#var-test-test"><span><em><strong>var</strong></em> <code>TEST = &#39;test&#39;</code></span></a></h3><h3 id="var-model-config-arbitrary-types-allowed-true" tabindex="-1"><a class="header-anchor" href="#var-model-config-arbitrary-types-allowed-true"><span><em><strong>var</strong></em> <code>model_config = {&#39;arbitrary_types_allowed&#39;: True}</code></span></a></h3>`,34),i=[s];function n(o,c){return a(),t("div",null,i)}const p=e(l,[["render",n],["__file","model.html.vue"]]),m=JSON.parse(`{"path":"/en/dev/api/plugin/model.html","title":"liteyuki.plugin.model","lang":"en-US","frontmatter":{"title":"liteyuki.plugin.model","order":1,"icon":"laptop-code","category":"API","description":"class PluginType(Enum) attr APPLICATION: 'application' attr SERVICE: 'service' attr MODULE: 'module' attr UNCLASSIFIED: 'unclassified' attr TEST: 'test' class PluginMeta...","head":[["link",{"rel":"alternate","hreflang":"zh-cn","href":"https://vuepress-theme-hope-docs-demo.netlify.app/dev/api/plugin/model.html"}],["meta",{"property":"og:url","content":"https://vuepress-theme-hope-docs-demo.netlify.app/en/dev/api/plugin/model.html"}],["meta",{"property":"og:site_name","content":"LiteyukiBot"}],["meta",{"property":"og:title","content":"liteyuki.plugin.model"}],["meta",{"property":"og:description","content":"class PluginType(Enum) attr APPLICATION: 'application' attr SERVICE: 'service' attr MODULE: 'module' attr UNCLASSIFIED: 'unclassified' attr TEST: 'test' class PluginMeta..."}],["meta",{"property":"og:type","content":"article"}],["meta",{"property":"og:locale","content":"en-US"}],["meta",{"property":"og:locale:alternate","content":"zh-CN"}],["meta",{"property":"og:updated_time","content":"2024-08-21T09:59:21.000Z"}],["meta",{"property":"article:modified_time","content":"2024-08-21T09:59:21.000Z"}],["script",{"type":"application/ld+json"},"{\\"@context\\":\\"https://schema.org\\",\\"@type\\":\\"Article\\",\\"headline\\":\\"liteyuki.plugin.model\\",\\"image\\":[\\"\\"],\\"dateModified\\":\\"2024-08-21T09:59:21.000Z\\",\\"author\\":[]}"]]},"headers":[{"level":3,"title":"class PluginType(Enum)","slug":"class-plugintype-enum","link":"#class-plugintype-enum","children":[]},{"level":3,"title":"attr APPLICATION: 'application'","slug":"attr-application-application","link":"#attr-application-application","children":[]},{"level":3,"title":"attr SERVICE: 'service'","slug":"attr-service-service","link":"#attr-service-service","children":[]},{"level":3,"title":"attr MODULE: 'module'","slug":"attr-module-module","link":"#attr-module-module","children":[]},{"level":3,"title":"attr UNCLASSIFIED: 'unclassified'","slug":"attr-unclassified-unclassified","link":"#attr-unclassif