2024-07-04 11:02:45 +05:00
|
|
|
|
using AsbCloudApp.Data.SAUB;
|
2023-10-20 11:24:04 +05:00
|
|
|
|
using AsbCloudApp.Requests;
|
2023-10-23 13:43:29 +05:00
|
|
|
|
using System.Collections.Generic;
|
2023-10-17 11:24:52 +05:00
|
|
|
|
using System.Threading;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace AsbCloudApp.Repositories
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// репозиторий по работе с данными drill_test
|
|
|
|
|
/// </summary>
|
|
|
|
|
public interface IDrillTestRepository
|
|
|
|
|
{
|
2023-10-20 11:24:04 +05:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Получить данные drill_test в соответствии с параметрами запроса
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="idTelemetry">ключ телеметрии</param>
|
|
|
|
|
/// <param name="request">запрос</param>
|
|
|
|
|
/// <param name="cancellationToken"></param>
|
|
|
|
|
/// <returns></returns>
|
2023-10-23 13:43:29 +05:00
|
|
|
|
Task<IEnumerable<DrillTestDto>> GetAllAsync(int idTelemetry, FileReportRequest request, CancellationToken cancellationToken);
|
2023-10-20 11:24:04 +05:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Получить запись drill_test
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="idTelemetry">ключ телеметрии</param>
|
|
|
|
|
/// <param name="id">ключ записи drill_test</param>
|
|
|
|
|
/// <param name="cancellationToken"></param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
Task<DrillTestDto> GetAsync(int idTelemetry, int id, CancellationToken cancellationToken);
|
|
|
|
|
|
2023-10-17 11:24:52 +05:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Сохранить данные drill_test
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="idTelemetry">ключ телеметрии</param>
|
2024-04-22 13:40:14 +05:00
|
|
|
|
/// <param name="dtos">записи drill test</param>
|
2023-10-17 11:24:52 +05:00
|
|
|
|
/// <param name="token"></param>
|
|
|
|
|
/// <returns></returns>
|
2024-04-22 13:40:14 +05:00
|
|
|
|
Task<int> SaveDataAsync(int idTelemetry, IEnumerable<DrillTestBaseDto> dtos, CancellationToken token);
|
2024-07-22 12:43:26 +05:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Удаление записей drill_test по запросу на удаление куска телеметрии
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="request"></param>
|
|
|
|
|
/// <param name="token"></param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
Task<int> DeleteAsync(TelemetryPartDeleteRequest request, CancellationToken token);
|
2023-10-17 11:24:52 +05:00
|
|
|
|
}
|
|
|
|
|
}
|