2024-12-04 14:13:25 +05:00
|
|
|
|
using Microsoft.AspNetCore.Mvc;
|
2024-12-16 15:38:46 +05:00
|
|
|
|
using DD.Persistence.Models;
|
2024-12-04 14:13:25 +05:00
|
|
|
|
|
2024-12-16 15:38:46 +05:00
|
|
|
|
namespace DD.Persistence.API;
|
2024-12-04 14:13:25 +05:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Интерфейс для работы с параметрами Wits
|
|
|
|
|
/// </summary>
|
|
|
|
|
public interface IWitsDataApi : ISyncWithDiscriminatorApi<WitsDataDto>
|
|
|
|
|
{
|
2024-12-12 16:56:25 +05:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Получить набор параметров (Wits) для построения графика
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="discriminatorId"></param>
|
|
|
|
|
/// <param name="dateFrom"></param>
|
|
|
|
|
/// <param name="dateTo"></param>
|
|
|
|
|
/// <param name="approxPointsCount"></param>
|
|
|
|
|
/// <param name="token"></param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
Task<ActionResult<IEnumerable<WitsDataDto>>> GetValuesForGraph(Guid discriminatorId, DateTimeOffset dateFrom, DateTimeOffset dateTo,
|
|
|
|
|
int approxPointsCount, CancellationToken token);
|
2024-12-04 14:13:25 +05:00
|
|
|
|
|
2024-12-12 16:56:25 +05:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Сохранить набор параметров (Wits)
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="dtos"></param>
|
|
|
|
|
/// <param name="token"></param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
Task<IActionResult> AddRange(IEnumerable<WitsDataDto> dtos, CancellationToken token);
|
2024-12-04 14:13:25 +05:00
|
|
|
|
}
|