DD.WellWorkover.Cloud/AsbCloudApp/Repositories/IDetectedOperationRepository.cs

71 lines
2.6 KiB
C#
Raw Permalink Normal View History

using AsbCloudApp.Data;
using AsbCloudApp.Data.DetectedOperation;
2024-02-05 09:28:40 +05:00
using AsbCloudApp.Requests;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
2024-07-25 18:58:26 +05:00
using AsbCloudApp.Services;
2024-02-05 09:28:40 +05:00
namespace AsbCloudApp.Repositories;
/// <summary>
2024-02-08 11:38:25 +05:00
/// Таблица автоматически определенных операций
2024-02-05 09:28:40 +05:00
/// </summary>
public interface IDetectedOperationRepository : ITelemetryDataEditorService
2024-02-05 09:28:40 +05:00
{
/// <summary>
/// Добавление нескольких записей
2024-02-05 09:28:40 +05:00
/// </summary>
/// <param name="dtos"></param>
/// <param name="token"></param>
/// <returns>количество добавленных</returns>
Task<int> InsertRangeAsync(IEnumerable<DetectedOperationDto> dtos, CancellationToken token);
2024-02-05 09:28:40 +05:00
/// <summary>
/// Обновить несколько записей
2024-02-05 09:28:40 +05:00
/// </summary>
/// <param name="dtos"></param>
2024-02-05 09:28:40 +05:00
/// <param name="token"></param>
/// <returns></returns>
Task<int> UpdateRangeAsync(IEnumerable<DetectedOperationDto> dtos, CancellationToken token);
2024-02-05 09:28:40 +05:00
/// <summary>
/// Удаление нескольких записей
2024-02-05 09:28:40 +05:00
/// </summary>
/// <param name="ids"></param>
2024-02-05 09:28:40 +05:00
/// <param name="token"></param>
/// <returns></returns>
Task<int> DeleteRangeAsync(IEnumerable<int> ids, CancellationToken token);
2024-02-05 09:28:40 +05:00
/// <summary>
/// Получить автоматически определенные операции по телеметрии
2024-02-05 09:28:40 +05:00
/// </summary>
/// <param name="request"></param>
/// <param name="token"></param>
/// <returns></returns>
Task<IEnumerable<DetectedOperationDto>> Get(DetectedOperationByTelemetryRequest request, CancellationToken token);
2024-02-05 09:28:40 +05:00
/// <summary>
/// Получить страницу списка операций
2024-02-05 09:28:40 +05:00
/// </summary>
/// <param name="request"></param>
2024-02-05 09:28:40 +05:00
/// <param name="token"></param>
/// <returns></returns>
Task<PaginationContainer<DetectedOperationDto>> GetPageAsync(DetectedOperationByTelemetryRequest request, CancellationToken token);
/// <summary>
2024-07-26 16:56:36 +05:00
/// Получение последних авто определённых операций
/// </summary>
/// <param name="token"></param>
/// <returns></returns>
Task<IDictionary<int, DetectedOperationDto>> GetLastDetectedOperationsAsync(CancellationToken token);
/// <summary>
/// Удалить операции
/// </summary>
/// <param name="request"></param>
/// <param name="token"></param>
/// <returns></returns>
Task<int> DeleteAsync(DetectedOperationByTelemetryRequest request, CancellationToken token);
2024-02-05 09:28:40 +05:00
}