2024-11-12 13:36:09 +05:00
|
|
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
|
|
using Persistence.Models;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace Persistence.API;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Интерфейс для работы с API временных данных
|
|
|
|
|
/// </summary>
|
2024-11-21 17:02:36 +05:00
|
|
|
|
public interface ITimeSeriesDataApi<TDto> : ITimeSeriesBaseDataApi<TDto>
|
2024-11-14 15:17:43 +05:00
|
|
|
|
where TDto : class, ITimeSeriesAbstractDto, new()
|
2024-11-12 13:36:09 +05:00
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
2024-11-14 15:17:43 +05:00
|
|
|
|
/// Получить список объектов, удовлетворяющий диапазон дат
|
2024-11-12 13:36:09 +05:00
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="dateBegin">дата начала</param>
|
|
|
|
|
/// <param name="token"></param>
|
|
|
|
|
/// <returns></returns>
|
2024-11-21 17:02:36 +05:00
|
|
|
|
Task<IActionResult> Get(DateTimeOffset dateBegin, CancellationToken token);
|
2024-11-12 13:36:09 +05:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Добавление записей
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="dtos"></param>
|
|
|
|
|
/// <param name="token"></param>
|
|
|
|
|
/// <returns></returns>
|
2024-11-21 17:02:36 +05:00
|
|
|
|
Task<IActionResult> InsertRange(IEnumerable<TDto> dtos, CancellationToken token);
|
2024-11-12 13:36:09 +05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|