forked from ddrilling/AsbCloudServer
43 lines
1.5 KiB
C#
43 lines
1.5 KiB
C#
using AsbCloudApp.Data.ProcessMap;
|
||
using AsbCloudApp.Requests;
|
||
using AsbCloudApp.Services;
|
||
using System;
|
||
using System.Collections.Generic;
|
||
using System.Threading;
|
||
using System.Threading.Tasks;
|
||
|
||
namespace AsbCloudApp.Repositories
|
||
{
|
||
/// <summary>
|
||
/// РТК-план
|
||
/// </summary>
|
||
public interface IProcessMapPlanRepository : IRepositoryWellRelated<ProcessMapPlanDto>
|
||
{
|
||
/// <summary>
|
||
/// Получить РТК-план начиная с даты.
|
||
/// </summary>
|
||
/// <param name="idWell"></param>
|
||
/// <param name="updateFrom"></param>
|
||
/// <param name="token"></param>
|
||
/// <returns></returns>
|
||
Task<IEnumerable<ProcessMapPlanDto>> GetAllAsync(int idWell,
|
||
DateTime? updateFrom, CancellationToken token = default);
|
||
|
||
/// <summary>
|
||
/// Получить РТК-план
|
||
/// </summary>
|
||
/// <param name="requests"></param>
|
||
/// <param name="token"></param>
|
||
/// <returns></returns>
|
||
Task<IEnumerable<ProcessMapPlanDto>> GetProcessMapAsync(IEnumerable<ProcessMapRequest> requests,
|
||
CancellationToken token);
|
||
|
||
/// <summary>
|
||
/// Удалить РТК-план по скважине
|
||
/// </summary>
|
||
/// <param name="idWell"></param>
|
||
/// <param name="cancellationToken"></param>
|
||
/// <returns></returns>
|
||
Task<int> RemoveByWellAsync(int idWell, CancellationToken cancellationToken);
|
||
}
|
||
} |