插件配置中必须声明插件名称

This commit is contained in:
FalconFly 2023-12-21 16:42:53 +08:00
parent 251373c6bf
commit e7d60844ee
2 changed files with 22 additions and 0 deletions

View File

@ -17,6 +17,11 @@ namespace Falcon.SugarApi.Plugin
/// </summary>
public static string SwiggerDefincePathName { get; private set; } = "swagger";
/// <summary>
/// 配置中定义组件启动程序集文件键
/// </summary>
public static string PluginName { get; private set; } = "PluginName";
/// <summary>
/// 插件配置文件名称
/// </summary>

View File

@ -13,3 +13,20 @@
2. WebAPI模块主网站通过services.AddPluginService方法注册组件。
### 配置文件
~~~json
{
"配置文件名称": {
"PluginName": "配置文件程序集名称",
"swagger": {
"Title": "标题",
"Version": "组件名称",
"Description": "说明文本"
}
}
}
~~~
**PluginName**必须组件程序集dll名称。