From 38625b80db1019d8d2088552f002e7d483f9a8d9 Mon Sep 17 00:00:00 2001
From: GwWuYou <95328647+GeWuYou@users.noreply.github.com>
Date: Wed, 7 Jan 2026 22:23:05 +0800
Subject: [PATCH] =?UTF-8?q?feat(core):=20=E6=B7=BB=E5=8A=A0=E7=A9=BA?=
=?UTF-8?q?=E5=91=BD=E4=BB=A4=E5=92=8C=E6=9F=A5=E8=AF=A2=E8=BE=93=E5=85=A5?=
=?UTF-8?q?=E7=B1=BB?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
- 实现了EmptyCommentInput类用于表示无参数命令
- 实现了EmptyQueryInput类用于表示无参数查询
- 两个类分别实现ICommandInput和IQueryInput接口
- 提供了命令模式中输入参数的占位符实现
- 适用于不需要额外输入参数的简单操作场景
---
GFramework.Core/command/EmptyCommentInput.cs | 12 ++++++++++++
GFramework.Core/query/EmptyQueryInput.cs | 11 +++++++++++
2 files changed, 23 insertions(+)
create mode 100644 GFramework.Core/command/EmptyCommentInput.cs
create mode 100644 GFramework.Core/query/EmptyQueryInput.cs
diff --git a/GFramework.Core/command/EmptyCommentInput.cs b/GFramework.Core/command/EmptyCommentInput.cs
new file mode 100644
index 0000000..2d4df6e
--- /dev/null
+++ b/GFramework.Core/command/EmptyCommentInput.cs
@@ -0,0 +1,12 @@
+using GFramework.Core.Abstractions.command;
+
+namespace GFramework.Core.command;
+
+///
+/// 空命令输入类,用于表示一个不包含任何输入参数的命令
+///
+///
+/// 该类实现了ICommandInput接口,作为命令模式中的输入参数载体
+/// 通常用于不需要额外输入参数的简单命令操作
+///
+public sealed class EmptyCommentInput : ICommandInput;
\ No newline at end of file
diff --git a/GFramework.Core/query/EmptyQueryInput.cs b/GFramework.Core/query/EmptyQueryInput.cs
new file mode 100644
index 0000000..0d4e5eb
--- /dev/null
+++ b/GFramework.Core/query/EmptyQueryInput.cs
@@ -0,0 +1,11 @@
+using GFramework.Core.Abstractions.query;
+
+namespace GFramework.Core.query;
+
+///
+/// 空查询输入类,用于表示不需要任何输入参数的查询操作
+///
+///
+/// 该类实现了IQueryInput接口,作为占位符使用,适用于那些不需要额外输入参数的查询场景
+///
+public sealed class EmptyQueryInput : IQueryInput;
\ No newline at end of file