refactor(repository): 更新仓储接口继承实用工具接口

- 添加 GFramework.Core.Abstractions.utility 命名空间引用
- 修改 IRepository 接口继承 IUtility 接口
- 为仓储接口添加实用工具功能支持
This commit is contained in:
GeWuYou 2026-02-23 22:40:39 +08:00 committed by gewuyou
parent f8a1c99b99
commit 6a99b54d6e

View File

@ -11,6 +11,8 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
using GFramework.Core.Abstractions.utility;
namespace GFramework.Game.Abstractions.data; namespace GFramework.Game.Abstractions.data;
/// <summary> /// <summary>
@ -18,7 +20,7 @@ namespace GFramework.Game.Abstractions.data;
/// </summary> /// </summary>
/// <typeparam name="TKey">键的类型</typeparam> /// <typeparam name="TKey">键的类型</typeparam>
/// <typeparam name="TValue">值的类型</typeparam> /// <typeparam name="TValue">值的类型</typeparam>
public interface IRepository<in TKey, TValue> public interface IRepository<in TKey, TValue> : IUtility
{ {
/// <summary> /// <summary>
/// 添加键值对到仓储中 /// 添加键值对到仓储中