persistence/Persistence/API/IApiTableData.cs

26 lines
950 B
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using Persistence.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Persistence.API;
/// Интерфейс для работы с API, предназначенного для работы с табличными данными
public interface IApiTableData<TDto, TRequest>
where TDto : class, new()
where TRequest : RequestDto
{
/// <summary>
/// Получить страницу списка объектов
/// </summary>
/// <param name="skip"></param>
/// <param name="take"></param>
/// <param name="sortSettings">строка с настройками сортировки</param>
/// <param name="request">параметры фильтрации</param>
/// <param name="token"></param>
/// <returns></returns>
Task<PaginationContainer<TDto>> GetPageAsync(TRequest request, CancellationToken token);
}