完善插件组件

This commit is contained in:
FalconFly 2024-01-01 07:24:22 +08:00
parent 850f3efabd
commit d0d7765c07
2 changed files with 55 additions and 0 deletions

View 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; }
}
}

View 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; }
}
}