DD.WellWorkover.Cloud/AsbCloudApp/Repositories/IProcessMapRepository.cs

43 lines
1.5 KiB
C#
Raw Normal View History

2022-12-27 14:30:52 +05:00
using AsbCloudApp.Data.ProcessMap;
2023-01-26 15:37:46 +05:00
using AsbCloudApp.Requests;
2023-02-02 12:04:50 +05:00
using AsbCloudApp.Services;
using System;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
2023-02-02 12:04:50 +05:00
namespace AsbCloudApp.Repositories
{
2022-08-05 17:52:42 +05:00
/// <summary>
/// РТК-план
2022-08-05 17:52:42 +05:00
/// </summary>
public interface IProcessMapPlanRepository : IRepositoryWellRelated<ProcessMapPlanDto>
{
2022-08-05 17:52:42 +05:00
/// <summary>
/// Получить РТК-план начиная с даты.
2022-08-05 17:52:42 +05:00
/// </summary>
/// <param name="idWell"></param>
/// <param name="updateFrom"></param>
/// <param name="token"></param>
/// <returns></returns>
Task<IEnumerable<ProcessMapPlanDto>> GetAllAsync(int idWell,
2022-12-07 08:47:41 +05:00
DateTime? updateFrom, CancellationToken token = default);
2023-01-26 15:37:46 +05:00
/// <summary>
/// Получить РТК-план
2023-01-26 15:37:46 +05:00
/// </summary>
2023-02-02 12:04:50 +05:00
/// <param name="requests"></param>
2023-01-26 15:37:46 +05:00
/// <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);
}
}