2022-12-22 18:08:58 +05:00
|
|
|
|
using AsbCloudApp.Data;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Threading;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace AsbCloudApp.Services
|
|
|
|
|
{
|
2022-12-25 23:16:36 +05:00
|
|
|
|
#nullable enable
|
2022-12-22 18:08:58 +05:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// CRUD для работы с плановой траекторией из клиента
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
public interface IPlannedTrajectoryService
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Получить все добавленные по скважине координаты плановой траектории
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="idWell"></param>
|
|
|
|
|
/// <param name="token"></param>
|
|
|
|
|
/// <returns></returns>
|
2022-12-29 04:25:08 +05:00
|
|
|
|
Task<IEnumerable<PlannedTrajectoryDto>> GetAsync(int idWell, CancellationToken token);
|
2022-12-22 18:08:58 +05:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Добавить строки с координатами
|
2022-12-29 04:25:08 +05:00
|
|
|
|
/// </summary>
|
2022-12-22 18:08:58 +05:00
|
|
|
|
/// <param name="plannedTrajectoryRows"></param>
|
|
|
|
|
/// <param name="token"></param>
|
|
|
|
|
/// <returns></returns>
|
2022-12-29 04:25:08 +05:00
|
|
|
|
Task<int> AddRangeAsync(IEnumerable<PlannedTrajectoryDto> plannedTrajectoryRows, CancellationToken token);
|
2022-12-22 18:08:58 +05:00
|
|
|
|
|
2022-12-27 21:45:03 +05:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Добавить одну строку с координатами
|
2022-12-29 04:25:08 +05:00
|
|
|
|
/// </summary>
|
2022-12-27 21:45:03 +05:00
|
|
|
|
/// <param name="plannedTrajectoryRow"></param>
|
|
|
|
|
/// <param name="token"></param>
|
|
|
|
|
/// <returns></returns>
|
2022-12-29 04:25:08 +05:00
|
|
|
|
Task<int> AddAsync(PlannedTrajectoryDto plannedTrajectoryRow, CancellationToken token);
|
2022-12-27 21:45:03 +05:00
|
|
|
|
|
2022-12-22 18:08:58 +05:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Обновить строку с координатами
|
2023-01-11 14:59:54 +05:00
|
|
|
|
/// </summary>
|
2022-12-22 18:08:58 +05:00
|
|
|
|
/// <param name="row"></param>
|
|
|
|
|
/// <param name="token"></param>
|
|
|
|
|
/// <returns></returns>
|
2023-01-11 14:59:54 +05:00
|
|
|
|
Task<int> UpdateAsync(PlannedTrajectoryDto row,
|
2022-12-22 18:08:58 +05:00
|
|
|
|
CancellationToken token);
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2022-12-25 23:16:36 +05:00
|
|
|
|
/// Удалить строки с координатами
|
2022-12-22 18:08:58 +05:00
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="ids"></param>
|
|
|
|
|
/// <param name="token"></param>
|
|
|
|
|
/// <returns></returns>
|
2022-12-25 23:16:36 +05:00
|
|
|
|
Task<int> DeleteRangeAsync(IEnumerable<int> ids, CancellationToken token);
|
2022-12-27 00:02:49 +05:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Удалить всю плановую траекторию по ИД скважины
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="idWell"></param>
|
|
|
|
|
/// <param name="token"></param>
|
|
|
|
|
/// <returns></returns>
|
2022-12-29 04:25:08 +05:00
|
|
|
|
Task<int> DeleteByIdWellAsync(int idWell, CancellationToken token);
|
2022-12-22 18:08:58 +05:00
|
|
|
|
}
|
2022-12-25 23:16:36 +05:00
|
|
|
|
#nullable disable
|
2022-12-22 18:08:58 +05:00
|
|
|
|
}
|