27 lines
922 B
C#
27 lines
922 B
C#
using Microsoft.AspNetCore.Mvc;
|
|
using Persistence.Models;
|
|
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);
|
|
|
|
[Get($"{BaseRoute}/statistics/" + "{autoDrillingSystem}")]
|
|
Task<IApiResponse<int>> GetStatistics(string? autoDrillingSystem, int? importantId, CancellationToken token);
|
|
}
|
|
}
|