Skip to content

Commit

Permalink
refactor(dynamic-queryable): rename search method
Browse files Browse the repository at this point in the history
  • Loading branch information
colinin committed Sep 16, 2024
1 parent 48f40a4 commit 373f151
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ public interface IDynamicQueryableAppService<TEntityDto>
/// </summary>
/// <param name="dynamicInput"></param>
/// <returns></returns>
Task<PagedResultDto<TEntityDto>> GetListAsync(GetListByDynamicQueryableInput dynamicInput);
Task<PagedResultDto<TEntityDto>> SearchAsync(GetListByDynamicQueryableInput dynamicInput);
}
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public virtual Task<ListResultDto<DynamicParamterDto>> GetAvailableFieldsAsync()
/// </summary>
/// <param name="dynamicInput"></param>
/// <returns></returns>
public async virtual Task<PagedResultDto<TEntityDto>> GetListAsync(GetListByDynamicQueryableInput dynamicInput)
public async virtual Task<PagedResultDto<TEntityDto>> SearchAsync(GetListByDynamicQueryableInput dynamicInput)
{
Expression<Func<TEntity, bool>> condition = (e) => true;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ public Task<ListResultDto<DynamicParamterDto>> GetAvailableFieldsAsync()

[HttpPost]
[Route("search")]
public Task<PagedResultDto<TEntityDto>> GetListAsync(GetListByDynamicQueryableInput dynamicInput)
public Task<PagedResultDto<TEntityDto>> SearchAsync(GetListByDynamicQueryableInput dynamicInput)
{
return DynamicQueryableAppService.GetListAsync(dynamicInput);
return DynamicQueryableAppService.SearchAsync(dynamicInput);
}
}

0 comments on commit 373f151

Please sign in to comment.