using Persistence.Models; using Refit; namespace Persistence.Client.Clients.Interfaces.Refit { /// /// Интерфейс клиента для хранения технологических сообщений /// public interface IRefitTechMessagesClient { private const string BaseRoute = "/api/techMessages"; [Get($"{BaseRoute}")] Task>> GetPage([Query] RequestDto request, CancellationToken token); [Post($"{BaseRoute}")] Task> AddRange([Body] IEnumerable dtos, CancellationToken token); [Get($"{BaseRoute}/systems")] Task>> GetSystems(CancellationToken token); [Get($"{BaseRoute}/range")] Task> GetDatesRangeAsync(CancellationToken token); [Get($"{BaseRoute}/part")] Task>> GetPart(DateTimeOffset dateBegin, int take, CancellationToken token); [Get($"{BaseRoute}/statistics")] Task>> GetStatistics([Query] string autoDrillingSystem, [Query] int categoryId, CancellationToken token); } }