mirror of
https://github.com/GeWuYou/GFramework.git
synced 2026-03-22 18:52:08 +08:00
- 实现了EmptyCommentInput类用于表示无参数命令 - 实现了EmptyQueryInput类用于表示无参数查询 - 两个类分别实现ICommandInput和IQueryInput接口 - 提供了命令模式中输入参数的占位符实现 - 适用于不需要额外输入参数的简单操作场景
12 lines
425 B
C#
12 lines
425 B
C#
using GFramework.Core.Abstractions.command;
|
||
|
||
namespace GFramework.Core.command;
|
||
|
||
/// <summary>
|
||
/// 空命令输入类,用于表示一个不包含任何输入参数的命令
|
||
/// </summary>
|
||
/// <remarks>
|
||
/// 该类实现了ICommandInput接口,作为命令模式中的输入参数载体
|
||
/// 通常用于不需要额外输入参数的简单命令操作
|
||
/// </remarks>
|
||
public sealed class EmptyCommentInput : ICommandInput; |