2024-12-02 15:14:00 +05:00
|
|
|
|
using Persistence.Models;
|
2024-11-26 12:27:52 +05:00
|
|
|
|
using Refit;
|
|
|
|
|
|
|
|
|
|
namespace Persistence.Client.Clients
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Интерфейс клиента для хранения технологических сообщений
|
|
|
|
|
/// </summary>
|
|
|
|
|
public interface ITechMessagesClient
|
|
|
|
|
{
|
|
|
|
|
private const string BaseRoute = "/api/techMessages";
|
|
|
|
|
|
|
|
|
|
[Get($"{BaseRoute}")]
|
|
|
|
|
Task<IApiResponse<PaginationContainer<TechMessageDto>>> GetPage([Query] RequestDto request, CancellationToken token);
|
|
|
|
|
|
|
|
|
|
[Post($"{BaseRoute}")]
|
|
|
|
|
Task<IApiResponse<int>> InsertRange([Body] IEnumerable<TechMessageDto> dtos, CancellationToken token);
|
|
|
|
|
|
|
|
|
|
[Get($"{BaseRoute}/systems")]
|
|
|
|
|
Task<IApiResponse<IEnumerable<string>>> GetSystems(CancellationToken token);
|
|
|
|
|
|
2024-12-02 15:14:00 +05:00
|
|
|
|
[Get($"{BaseRoute}/range")]
|
|
|
|
|
Task<IApiResponse<DatesRangeDto>> GetDatesRangeAsync(CancellationToken token);
|
|
|
|
|
|
|
|
|
|
[Get($"{BaseRoute}/part")]
|
|
|
|
|
Task<IApiResponse<IEnumerable<TechMessageDto>>> GetPart(DateTimeOffset dateBegin, int take, CancellationToken token);
|
|
|
|
|
|
|
|
|
|
[Get($"{BaseRoute}/statistics")]
|
|
|
|
|
Task<IApiResponse<IEnumerable<MessagesStatisticDto>>> GetStatistics([Query] string autoDrillingSystem, [Query] int categoryId, CancellationToken token);
|
2024-11-26 12:27:52 +05:00
|
|
|
|
}
|
|
|
|
|
}
|