forked from bot/app
9 lines
5.6 KiB
JavaScript
9 lines
5.6 KiB
JavaScript
import{_ as e,o as t,c as a,e as l}from"./app-0e_4pVFu.js";const i={},n=l(`<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: 'application'</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: 'service'</code></span></a></h3><h3 id="attr-implementation-implementation" tabindex="-1"><a class="header-anchor" href="#attr-implementation-implementation"><span> <em><strong>attr</strong></em> <code>IMPLEMENTATION: 'implementation'</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: 'module'</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: 'unclassified'</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: {'arbitrary_types_allowed': True}</code></span></a></h3>`,28),r=[n];function o(s,c){return t(),a("div",null,r)}const d=e(i,[["render",o],["__file","model.html.vue"]]),m=JSON.parse(`{"path":"/dev/api/plugin/model.html","title":"liteyuki.plugin.model","lang":"zh-CN","frontmatter":{"title":"liteyuki.plugin.model","order":1,"icon":"laptop-code","category":"API","description":"class PluginType(Enum) 插件类型枚举值 attr APPLICATION: 'application' attr SERVICE: 'service' attr IMPLEMENTATION: 'implementation' attr MODULE: 'module' attr UNCLASSIFIED: 'unclassifi...","head":[["meta",{"property":"og:url","content":"https://vuepress-theme-hope-docs-demo.netlify.app/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 IMPLEMENTATION: 'implementation' attr MODULE: 'module' attr UNCLASSIFIED: 'unclassifi..."}],["meta",{"property":"og:type","content":"article"}],["meta",{"property":"og:locale","content":"zh-CN"}],["meta",{"property":"og:updated_time","content":"2024-08-19T01:55:47.000Z"}],["meta",{"property":"article:modified_time","content":"2024-08-19T01:55:47.000Z"}],["script",{"type":"application/ld+json"},"{\\"@context\\":\\"https://schema.org\\",\\"@type\\":\\"Article\\",\\"headline\\":\\"liteyuki.plugin.model\\",\\"image\\":[\\"\\"],\\"dateModified\\":\\"2024-08-19T01:55:47.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 IMPLEMENTATION: 'implementation'","slug":"attr-implementation-implementation","link":"#attr-implementation-implementation","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-unclassified-unclassified","children":[]},{"level":3,"title":"class PluginMetadata(BaseModel)","slug":"class-pluginmetadata-basemodel","link":"#class-pluginmetadata-basemodel","children":[]},{"level":3,"title":"class Plugin(BaseModel)","slug":"class-plugin-basemodel","link":"#class-plugin-basemodel","children":[]},{"level":3,"title":"attr model_config: {'arbitrary_types_allowed': True}","slug":"attr-model-config-arbitrary-types-allowed-true","link":"#attr-model-config-arbitrary-types-allowed-true","children":[]}],"git":{"createdTime":1724031826000,"updatedTime":1724032547000,"contributors":[{"name":"snowy","email":"snowykami@outlook.com","commits":2}]},"readingTime":{"minutes":0.41,"words":123},"filePathRelative":"dev/api/plugin/model.md","localizedDate":"2024年8月19日","autoDesc":true}`);export{d as comp,m as data};
|