using GFramework.Core.Query; namespace GFramework.Core.Tests.Query; /// /// 为 提供整数结果的测试同步查询。 /// public sealed class TestQuery : AbstractQuery { /// /// 初始化 的新实例。 /// /// 查询输入参数。 public TestQuery(TestQueryInput input) : base(input) { } /// /// 执行同步查询并返回输入值的双倍结果。 /// /// 查询输入参数。 /// 输入值乘以 2 后的结果。 protected override int OnDo(TestQueryInput input) { return input.Value * 2; } }