mirror of
https://github.com/GeWuYou/GFramework.git
synced 2026-03-22 10:34:30 +08:00
feat(core): 添加空命令和查询输入类
- 实现了EmptyCommentInput类用于表示无参数命令 - 实现了EmptyQueryInput类用于表示无参数查询 - 两个类分别实现ICommandInput和IQueryInput接口 - 提供了命令模式中输入参数的占位符实现 - 适用于不需要额外输入参数的简单操作场景
This commit is contained in:
parent
e000665c67
commit
38625b80db
12
GFramework.Core/command/EmptyCommentInput.cs
Normal file
12
GFramework.Core/command/EmptyCommentInput.cs
Normal file
@ -0,0 +1,12 @@
|
||||
using GFramework.Core.Abstractions.command;
|
||||
|
||||
namespace GFramework.Core.command;
|
||||
|
||||
/// <summary>
|
||||
/// 空命令输入类,用于表示一个不包含任何输入参数的命令
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 该类实现了ICommandInput接口,作为命令模式中的输入参数载体
|
||||
/// 通常用于不需要额外输入参数的简单命令操作
|
||||
/// </remarks>
|
||||
public sealed class EmptyCommentInput : ICommandInput;
|
||||
11
GFramework.Core/query/EmptyQueryInput.cs
Normal file
11
GFramework.Core/query/EmptyQueryInput.cs
Normal file
@ -0,0 +1,11 @@
|
||||
using GFramework.Core.Abstractions.query;
|
||||
|
||||
namespace GFramework.Core.query;
|
||||
|
||||
/// <summary>
|
||||
/// 空查询输入类,用于表示不需要任何输入参数的查询操作
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 该类实现了IQueryInput接口,作为占位符使用,适用于那些不需要额外输入参数的查询场景
|
||||
/// </remarks>
|
||||
public sealed class EmptyQueryInput : IQueryInput;
|
||||
Loading…
x
Reference in New Issue
Block a user