2024-07-04 11:02:45 +05:00
|
|
|
|
using AsbCloudApp.Data.Subsystems;
|
2023-12-16 13:22:23 +05:00
|
|
|
|
using AsbCloudApp.Requests;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Threading;
|
|
|
|
|
using System.Threading.Tasks;
|
2024-02-20 16:58:40 +05:00
|
|
|
|
using AsbCloudApp.Data;
|
2023-12-16 13:22:23 +05:00
|
|
|
|
|
|
|
|
|
namespace AsbCloudApp.Services;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Получение инфо о наработке подсистем
|
|
|
|
|
/// </summary>
|
|
|
|
|
public interface ISubsystemService
|
|
|
|
|
{
|
2024-07-04 11:02:45 +05:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Статистика о наработке подсистем
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="request"></param>
|
|
|
|
|
/// <param name="token"></param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
Task<IEnumerable<SubsystemStatDto>> GetStatAsync(SubsystemRequest request, CancellationToken token);
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Получение статистики по наработке подсистем по активным скважинам
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="wellIds"></param>
|
|
|
|
|
/// <param name="token"></param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
Task<IEnumerable<SubsystemActiveWellStatDto>> GetStatByActiveWells(IEnumerable<int> wellIds, CancellationToken token);
|
2024-02-20 16:58:40 +05:00
|
|
|
|
|
2024-07-04 11:02:45 +05:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Получение статистики по бурильщику
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="request"></param>
|
|
|
|
|
/// <param name="token"></param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
Task<IEnumerable<DrillerDetectedOperationStatDto>> GetByWellsAsync(GetStatRequest request,
|
|
|
|
|
CancellationToken token);
|
2023-12-16 13:22:23 +05:00
|
|
|
|
}
|