forked from ddrilling/AsbCloudServer
64 lines
2.4 KiB
C#
64 lines
2.4 KiB
C#
using AsbCloudApp.Data;
|
||
using System.Collections.Generic;
|
||
using System.Threading;
|
||
using System.Threading.Tasks;
|
||
|
||
namespace AsbCloudApp.Services
|
||
{
|
||
#nullable enable
|
||
/// <summary>
|
||
/// CRUD для работы с плановой траекторией из клиента
|
||
/// </summary>
|
||
/// <returns></returns>
|
||
public interface IPlannedTrajectoryService
|
||
{
|
||
/// <summary>
|
||
/// Получить все добавленные по скважине координаты плановой траектории
|
||
/// </summary>
|
||
/// <param name="idWell"></param>
|
||
/// <param name="token"></param>
|
||
/// <returns></returns>
|
||
Task<IEnumerable<PlannedTrajectoryDto>> GetOrDefaultAsync(int idWell, CancellationToken token);
|
||
|
||
/// <summary>
|
||
/// Добавить строки с координатами
|
||
/// </summary>
|
||
/// <param name="idWell"></param>
|
||
/// <param name="idUser"></param>
|
||
/// <param name="plannedTrajectoryRows"></param>
|
||
/// <param name="token"></param>
|
||
/// <returns></returns>
|
||
Task<int> AddAsync(int idWell, int idUser,
|
||
IEnumerable<PlannedTrajectoryDto> plannedTrajectoryRows, CancellationToken token);
|
||
|
||
/// <summary>
|
||
/// Обновить строку с координатами
|
||
/// </summary>
|
||
/// <param name="idWell"></param>
|
||
/// <param name="idUser"></param>
|
||
/// <param name="idRow"></param>
|
||
/// <param name="row"></param>
|
||
/// <param name="token"></param>
|
||
/// <returns></returns>
|
||
Task<int> UpdateAsync(int idWell, int idUser, int idRow, PlannedTrajectoryDto row,
|
||
CancellationToken token);
|
||
|
||
/// <summary>
|
||
/// Удалить строки с координатами
|
||
/// </summary>
|
||
/// <param name="ids"></param>
|
||
/// <param name="token"></param>
|
||
/// <returns></returns>
|
||
Task<int> DeleteRangeAsync(IEnumerable<int> ids, CancellationToken token);
|
||
|
||
/// <summary>
|
||
/// Удалить всю плановую траекторию по ИД скважины
|
||
/// </summary>
|
||
/// <param name="idWell"></param>
|
||
/// <param name="token"></param>
|
||
/// <returns></returns>
|
||
Task DeleteAllByIdWellAsync(int idWell, CancellationToken token);
|
||
}
|
||
#nullable disable
|
||
}
|