插件配置中必须声明插件名称
This commit is contained in:
parent
251373c6bf
commit
e7d60844ee
|
@ -17,6 +17,11 @@ namespace Falcon.SugarApi.Plugin
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static string SwiggerDefincePathName { get; private set; } = "swagger";
|
public static string SwiggerDefincePathName { get; private set; } = "swagger";
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 配置中定义组件启动程序集文件键
|
||||||
|
/// </summary>
|
||||||
|
public static string PluginName { get; private set; } = "PluginName";
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 插件配置文件名称
|
/// 插件配置文件名称
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
|
@ -13,3 +13,20 @@
|
||||||
|
|
||||||
2. WebAPI模块:主网站通过services.AddPluginService方法注册组件。
|
2. WebAPI模块:主网站通过services.AddPluginService方法注册组件。
|
||||||
|
|
||||||
|
### 配置文件
|
||||||
|
|
||||||
|
~~~json
|
||||||
|
{
|
||||||
|
"配置文件名称": {
|
||||||
|
"PluginName": "配置文件程序集名称",
|
||||||
|
"swagger": {
|
||||||
|
"Title": "标题",
|
||||||
|
"Version": "组件名称",
|
||||||
|
"Description": "说明文本"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
~~~
|
||||||
|
|
||||||
|
**PluginName**:必须,组件程序集dll名称。
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user