From d0d7765c07f2ac46ccb59fc1879279aaf714ac21 Mon Sep 17 00:00:00 2001 From: FalconFly <12919280+falconfly@user.noreply.gitee.com> Date: Mon, 1 Jan 2024 07:24:22 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E6=8F=92=E4=BB=B6=E7=BB=84?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Plugin/Client/PluginOptions.cs | 20 +++++++++++ .../Plugin/Client/SwaggerDefines.cs | 35 +++++++++++++++++++ 2 files changed, 55 insertions(+) create mode 100644 Falcon.SugarApi/Plugin/Client/PluginOptions.cs create mode 100644 Falcon.SugarApi/Plugin/Client/SwaggerDefines.cs diff --git a/Falcon.SugarApi/Plugin/Client/PluginOptions.cs b/Falcon.SugarApi/Plugin/Client/PluginOptions.cs new file mode 100644 index 0000000..0fadda7 --- /dev/null +++ b/Falcon.SugarApi/Plugin/Client/PluginOptions.cs @@ -0,0 +1,20 @@ +using System.ComponentModel.DataAnnotations; + +namespace Falcon.SugarApi.Plugin.Client +{ + /// + /// 插件配置基类 + /// + public abstract class PluginOptions + { + /// + /// 插件名称 + /// + [Required] + public string PluginName { get; set; } + /// + /// 插件Swagger配置 + /// + public SwaggerDefines? swagger { get; set; } + } +} diff --git a/Falcon.SugarApi/Plugin/Client/SwaggerDefines.cs b/Falcon.SugarApi/Plugin/Client/SwaggerDefines.cs new file mode 100644 index 0000000..095c131 --- /dev/null +++ b/Falcon.SugarApi/Plugin/Client/SwaggerDefines.cs @@ -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 +{ + /// + /// Swagger定义 + /// + public class SwaggerDefines + { + /// + /// 是否启用 + /// + public bool Enable { get; set; } = true; + /// + /// 组名称 + /// + public string Name { get; set; } + /// + /// 标题 + /// + public string Title { get; set; } + /// + /// 对应api版本名称 + /// + public string Version { get; set; } + /// + /// api组说明 + /// + public string Description { get; set; } + } +}