using Microsoft.AspNetCore.Mvc;
using Persistence.Models;
using Refit;
namespace Persistence.Client.Clients
{
///
/// Интерфейс клиента для хранения технологических сообщений
///
public interface ITechMessagesClient
{
private const string BaseRoute = "/api/techMessages";
[Get($"{BaseRoute}")]
Task>> GetPage([Query] RequestDto request, CancellationToken token);
[Post($"{BaseRoute}")]
Task> InsertRange([Body] IEnumerable dtos, CancellationToken token);
[Get($"{BaseRoute}/systems")]
Task>> GetSystems(CancellationToken token);
[Get($"{BaseRoute}/statistics/" + "{autoDrillingSystem}")]
Task> GetStatistics(string? autoDrillingSystem, int? importantId, CancellationToken token);
}
}