2024-11-12 13:36:09 +05:00
|
|
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
|
|
using Persistence.Models;
|
2024-11-08 18:24:52 +05:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace Persistence.API;
|
|
|
|
|
|
2024-11-12 13:36:09 +05:00
|
|
|
|
/// Интерфейс для API, предназначенного для работы с табличными данными
|
2024-11-08 18:24:52 +05:00
|
|
|
|
public interface IApiTableData<TDto, TRequest>
|
|
|
|
|
where TDto : class, new()
|
|
|
|
|
where TRequest : RequestDto
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Получить страницу списка объектов
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="request">параметры фильтрации</param>
|
|
|
|
|
/// <param name="token"></param>
|
|
|
|
|
/// <returns></returns>
|
2024-11-12 13:36:09 +05:00
|
|
|
|
Task<ActionResult<PaginationContainer<TDto>>> GetPageAsync(TRequest request, CancellationToken token);
|
2024-11-08 18:24:52 +05:00
|
|
|
|
}
|