forked from ddrilling/AsbCloudServer
39 lines
1.2 KiB
C#
39 lines
1.2 KiB
C#
using AsbCloudApp.Data;
|
|
using AsbCloudApp.Data.SAUB;
|
|
using System.Collections.Generic;
|
|
using System.Threading;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace AsbCloudApp.Repositories;
|
|
|
|
/// <summary>
|
|
/// Наработка талевого каната
|
|
/// </summary>
|
|
public interface ITelemetryWirelineRunOutRepository
|
|
{
|
|
/// <summary>
|
|
/// Принимает данные от панели
|
|
/// </summary>
|
|
/// <param name="uid"></param>
|
|
/// <param name="dto"></param>
|
|
/// <param name="token"></param>
|
|
/// <returns></returns>
|
|
Task<int> AddOrUpdateAsync(string uid, TelemetryWirelineRunOutBaseDto dto, CancellationToken token);
|
|
|
|
/// <summary>
|
|
/// Выдает данные по скважине
|
|
/// </summary>
|
|
/// <param name="idWell"></param>
|
|
/// <param name="token"></param>
|
|
/// <returns></returns>
|
|
Task<TelemetryWirelineRunOutDto?> GetOrDefaultAsync(int idWell, CancellationToken token);
|
|
|
|
/// <summary>
|
|
/// Возвращает данные по всем скважинам
|
|
/// </summary>
|
|
/// <param name="idCompany"></param>
|
|
/// <param name="token"></param>
|
|
/// <returns></returns>
|
|
Task<IEnumerable<TelemetryWirelineRunOutDto>> GetAllAsync(int idCompany, CancellationToken token);
|
|
}
|