From 373f1518ce0901f9d7e0ff69db3877d31d579813 Mon Sep 17 00:00:00 2001 From: colin Date: Mon, 16 Sep 2024 09:19:42 +0800 Subject: [PATCH] refactor(dynamic-queryable): rename search method --- .../Abp/Dynamic/Queryable/IDynamicQueryableAppService.cs | 2 +- .../Abp/Dynamic/Queryable/DynamicQueryableAppService.cs | 2 +- .../Abp/Dynamic/Queryable/DynamicQueryableControllerBase.cs | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/aspnet-core/framework/dynamic-queryable/LINGYUN.Abp.Dynamic.Queryable.Application.Contracts/LINGYUN/Abp/Dynamic/Queryable/IDynamicQueryableAppService.cs b/aspnet-core/framework/dynamic-queryable/LINGYUN.Abp.Dynamic.Queryable.Application.Contracts/LINGYUN/Abp/Dynamic/Queryable/IDynamicQueryableAppService.cs index 5f98228b0..95b90b043 100644 --- a/aspnet-core/framework/dynamic-queryable/LINGYUN.Abp.Dynamic.Queryable.Application.Contracts/LINGYUN/Abp/Dynamic/Queryable/IDynamicQueryableAppService.cs +++ b/aspnet-core/framework/dynamic-queryable/LINGYUN.Abp.Dynamic.Queryable.Application.Contracts/LINGYUN/Abp/Dynamic/Queryable/IDynamicQueryableAppService.cs @@ -15,5 +15,5 @@ public interface IDynamicQueryableAppService /// /// /// - Task> GetListAsync(GetListByDynamicQueryableInput dynamicInput); + Task> SearchAsync(GetListByDynamicQueryableInput dynamicInput); } diff --git a/aspnet-core/framework/dynamic-queryable/LINGYUN.Abp.Dynamic.Queryable.Application/LINGYUN/Abp/Dynamic/Queryable/DynamicQueryableAppService.cs b/aspnet-core/framework/dynamic-queryable/LINGYUN.Abp.Dynamic.Queryable.Application/LINGYUN/Abp/Dynamic/Queryable/DynamicQueryableAppService.cs index 03029e51b..d6c8e0fae 100644 --- a/aspnet-core/framework/dynamic-queryable/LINGYUN.Abp.Dynamic.Queryable.Application/LINGYUN/Abp/Dynamic/Queryable/DynamicQueryableAppService.cs +++ b/aspnet-core/framework/dynamic-queryable/LINGYUN.Abp.Dynamic.Queryable.Application/LINGYUN/Abp/Dynamic/Queryable/DynamicQueryableAppService.cs @@ -84,7 +84,7 @@ public virtual Task> GetAvailableFieldsAsync() /// /// /// - public async virtual Task> GetListAsync(GetListByDynamicQueryableInput dynamicInput) + public async virtual Task> SearchAsync(GetListByDynamicQueryableInput dynamicInput) { Expression> condition = (e) => true; diff --git a/aspnet-core/framework/dynamic-queryable/LINGYUN.Abp.Dynamic.Queryable.HttpApi/LINGYUN/Abp/Dynamic/Queryable/DynamicQueryableControllerBase.cs b/aspnet-core/framework/dynamic-queryable/LINGYUN.Abp.Dynamic.Queryable.HttpApi/LINGYUN/Abp/Dynamic/Queryable/DynamicQueryableControllerBase.cs index 8043804e4..f8cb86fef 100644 --- a/aspnet-core/framework/dynamic-queryable/LINGYUN.Abp.Dynamic.Queryable.HttpApi/LINGYUN/Abp/Dynamic/Queryable/DynamicQueryableControllerBase.cs +++ b/aspnet-core/framework/dynamic-queryable/LINGYUN.Abp.Dynamic.Queryable.HttpApi/LINGYUN/Abp/Dynamic/Queryable/DynamicQueryableControllerBase.cs @@ -24,8 +24,8 @@ public Task> GetAvailableFieldsAsync() [HttpPost] [Route("search")] - public Task> GetListAsync(GetListByDynamicQueryableInput dynamicInput) + public Task> SearchAsync(GetListByDynamicQueryableInput dynamicInput) { - return DynamicQueryableAppService.GetListAsync(dynamicInput); + return DynamicQueryableAppService.SearchAsync(dynamicInput); } }