2024-07-04 11:02:45 +05:00
|
|
|
using AsbCloudApp.Data;
|
2023-01-10 10:49:27 +05:00
|
|
|
using AsbCloudApp.Data.SAUB;
|
2023-01-11 13:51:11 +05:00
|
|
|
using System.Collections.Generic;
|
2023-01-10 10:49:27 +05:00
|
|
|
using System.Threading;
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
2024-08-19 10:01:07 +05:00
|
|
|
namespace AsbCloudApp.Repositories;
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Наработка талевого каната
|
|
|
|
/// </summary>
|
|
|
|
public interface ITelemetryWirelineRunOutRepository
|
2023-01-10 10:49:27 +05:00
|
|
|
{
|
|
|
|
/// <summary>
|
2024-08-19 10:01:07 +05:00
|
|
|
/// Принимает данные от панели
|
2023-01-10 10:49:27 +05:00
|
|
|
/// </summary>
|
2024-08-19 10:01:07 +05:00
|
|
|
/// <param name="uid"></param>
|
|
|
|
/// <param name="dto"></param>
|
|
|
|
/// <param name="token"></param>
|
|
|
|
/// <returns></returns>
|
|
|
|
Task<int> AddOrUpdateAsync(string uid, TelemetryWirelineRunOutBaseDto dto, CancellationToken token);
|
2023-01-10 10:49:27 +05:00
|
|
|
|
2024-08-19 10:01:07 +05:00
|
|
|
/// <summary>
|
|
|
|
/// Выдает данные по скважине
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="idWell"></param>
|
|
|
|
/// <param name="token"></param>
|
|
|
|
/// <returns></returns>
|
|
|
|
Task<TelemetryWirelineRunOutDto?> GetOrDefaultAsync(int idWell, CancellationToken token);
|
2023-01-11 13:51:11 +05:00
|
|
|
|
2024-08-19 10:01:07 +05:00
|
|
|
/// <summary>
|
|
|
|
/// Возвращает данные по всем скважинам
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="idCompany"></param>
|
|
|
|
/// <param name="token"></param>
|
|
|
|
/// <returns></returns>
|
|
|
|
Task<IEnumerable<TelemetryWirelineRunOutDto>> GetAllAsync(int idCompany, CancellationToken token);
|
2023-01-10 10:49:27 +05:00
|
|
|
}
|