forked from ddrilling/AsbCloudServer
40 lines
1.5 KiB
C#
40 lines
1.5 KiB
C#
using AsbCloudApp.Data.Subsystems;
|
||
using AsbCloudApp.Requests;
|
||
using System;
|
||
using System.Collections.Generic;
|
||
using System.Threading;
|
||
using System.Threading.Tasks;
|
||
|
||
namespace AsbCloudApp.Services;
|
||
|
||
/// <summary>
|
||
/// Получение инфо о наработке подсистем
|
||
/// </summary>
|
||
public interface ISubsystemService
|
||
{
|
||
/// <summary>
|
||
/// Статистика о наработке подсистем
|
||
/// </summary>
|
||
/// <param name="request"></param>
|
||
/// <param name="token"></param>
|
||
/// <returns></returns>
|
||
Task<IEnumerable<SubsystemStatDto>> GetStatAsync(SubsystemRequest request, CancellationToken token);
|
||
|
||
/// <summary>
|
||
/// Получение статистики по наработке подсистем по активным скважинам
|
||
/// </summary>
|
||
/// <param name="idCompany"></param>
|
||
/// <param name="gtDate"></param>
|
||
/// <param name="ltDate"></param>
|
||
/// <param name="token"></param>
|
||
/// <returns></returns>
|
||
Task<IEnumerable<SubsystemActiveWellStatDto>> GetStatByActiveWells(int idCompany, DateTime? gtDate, DateTime? ltDate, CancellationToken token);
|
||
|
||
/// <summary>
|
||
/// Получение статистики по наработке подсистем по активным скважинам
|
||
/// </summary>
|
||
/// <param name="wellIds"></param>
|
||
/// <param name="token"></param>
|
||
/// <returns></returns>
|
||
Task<IEnumerable<SubsystemActiveWellStatDto>> GetStatByActiveWells(IEnumerable<int> wellIds, CancellationToken token);
|
||
} |