mirror of
https://github.com/GeWuYou/GFramework.git
synced 2026-05-07 16:55:57 +08:00
19 lines
537 B
C#
19 lines
537 B
C#
// Copyright (c) 2025-2026 GeWuYou
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
using GFramework.Core.Abstractions.Rule;
|
|
|
|
namespace GFramework.Core.Abstractions.Query;
|
|
|
|
/// <summary>
|
|
/// 查询接口,定义了执行查询操作的契约
|
|
/// </summary>
|
|
/// <typeparam name="TResult">查询结果的类型</typeparam>
|
|
public interface IQuery<out TResult> : IContextAware
|
|
{
|
|
/// <summary>
|
|
/// 执行查询操作并返回结果
|
|
/// </summary>
|
|
/// <returns>查询的结果,类型为 TResult</returns>
|
|
TResult Do();
|
|
} |