2024-11-28 08:55:50 +05:00
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
using Persistence.Models;
|
2024-11-25 13:49:07 +05:00
|
|
|
|
|
|
|
|
|
namespace Persistence.Repositories
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Интерфейс по работе с технологическими сообщениями
|
|
|
|
|
/// </summary>
|
|
|
|
|
public interface ITechMessagesRepository
|
|
|
|
|
{
|
2024-11-26 10:23:48 +05:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Получить страницу списка объектов
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="request"></param>
|
|
|
|
|
/// <param name="token"></param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
Task<PaginationContainer<TechMessageDto>> GetPage(RequestDto request, CancellationToken token);
|
|
|
|
|
|
2024-11-25 13:49:07 +05:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Добавление новых сообщений
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="dtos"></param>
|
|
|
|
|
/// <param name="token"></param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
Task<int> InsertRange(IEnumerable<TechMessageDto> dtos, CancellationToken token);
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Получение списка уникальных названий систем АБ
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="token"></param>
|
|
|
|
|
/// <returns></returns>
|
2024-11-28 13:13:07 +05:00
|
|
|
|
Task<IEnumerable<string>> GetSystems(CancellationToken token);
|
2024-11-25 13:49:07 +05:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Получение количества сообщений по категориям и системам автобурения
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="importantId">Id Категории важности</param>
|
|
|
|
|
/// <param name="autoDrillingSystem">Система автобурения</param>
|
|
|
|
|
/// <param name="token"></param>
|
|
|
|
|
/// <returns></returns>
|
2024-11-28 08:55:50 +05:00
|
|
|
|
Task<Dictionary<string, int>> GetStatistics(int? importantId, string? autoDrillingSystem, CancellationToken token);
|
2024-11-25 13:49:07 +05:00
|
|
|
|
}
|
|
|
|
|
}
|