完善插件组件
This commit is contained in:
parent
850f3efabd
commit
d0d7765c07
20
Falcon.SugarApi/Plugin/Client/PluginOptions.cs
Normal file
20
Falcon.SugarApi/Plugin/Client/PluginOptions.cs
Normal file
|
@ -0,0 +1,20 @@
|
|||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace Falcon.SugarApi.Plugin.Client
|
||||
{
|
||||
/// <summary>
|
||||
/// 插件配置基类
|
||||
/// </summary>
|
||||
public abstract class PluginOptions
|
||||
{
|
||||
/// <summary>
|
||||
/// 插件名称
|
||||
/// </summary>
|
||||
[Required]
|
||||
public string PluginName { get; set; }
|
||||
/// <summary>
|
||||
/// 插件Swagger配置
|
||||
/// </summary>
|
||||
public SwaggerDefines? swagger { get; set; }
|
||||
}
|
||||
}
|
35
Falcon.SugarApi/Plugin/Client/SwaggerDefines.cs
Normal file
35
Falcon.SugarApi/Plugin/Client/SwaggerDefines.cs
Normal file
|
@ -0,0 +1,35 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Falcon.SugarApi.Plugin.Client
|
||||
{
|
||||
/// <summary>
|
||||
/// Swagger定义
|
||||
/// </summary>
|
||||
public class SwaggerDefines
|
||||
{
|
||||
/// <summary>
|
||||
/// 是否启用
|
||||
/// </summary>
|
||||
public bool Enable { get; set; } = true;
|
||||
/// <summary>
|
||||
/// 组名称
|
||||
/// </summary>
|
||||
public string Name { get; set; }
|
||||
/// <summary>
|
||||
/// 标题
|
||||
/// </summary>
|
||||
public string Title { get; set; }
|
||||
/// <summary>
|
||||
/// 对应api版本名称
|
||||
/// </summary>
|
||||
public string Version { get; set; }
|
||||
/// <summary>
|
||||
/// api组说明
|
||||
/// </summary>
|
||||
public string Description { get; set; }
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user