2022-04-11 18:00:34 +05:00
|
|
|
|
using AsbCloudApp.Data;
|
|
|
|
|
using System.Collections.Generic;
|
2021-10-11 15:21:26 +05:00
|
|
|
|
using System.Threading;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace AsbCloudApp.Services
|
|
|
|
|
{
|
2021-10-11 16:43:10 +05:00
|
|
|
|
public interface IDrillParamsService : ICrudService<DrillParamsDto>
|
2021-10-11 15:21:26 +05:00
|
|
|
|
{
|
2022-04-11 18:00:34 +05:00
|
|
|
|
Task<DrillParamsDto> GetDefaultDrillParamsAsync(int idWell, double startDepth,
|
2021-10-11 15:21:26 +05:00
|
|
|
|
double endDepth, CancellationToken token = default);
|
2021-10-12 12:02:28 +05:00
|
|
|
|
|
|
|
|
|
Task<IEnumerable<DrillParamsDto>> GetAllAsync(int idWell,
|
|
|
|
|
CancellationToken token = default);
|
2021-10-13 12:27:40 +05:00
|
|
|
|
|
|
|
|
|
Task<IEnumerable<DrillParamsDto>> GetCompositeAllAsync(int idWell,
|
|
|
|
|
CancellationToken token = default);
|
|
|
|
|
|
|
|
|
|
Task<int> InsertAsync(int idWell, DrillParamsDto dto,
|
|
|
|
|
CancellationToken token = default);
|
2022-04-11 18:00:34 +05:00
|
|
|
|
|
2021-10-13 12:27:40 +05:00
|
|
|
|
Task<int> InsertRangeAsync(int idWell, IEnumerable<DrillParamsDto> dtos,
|
|
|
|
|
CancellationToken token = default);
|
|
|
|
|
|
2021-10-13 17:37:40 +05:00
|
|
|
|
Task<int> UpdateAsync(int idWell, int dtoId, DrillParamsDto dto,
|
2021-10-13 12:27:40 +05:00
|
|
|
|
CancellationToken token = default);
|
2021-10-14 17:57:25 +05:00
|
|
|
|
Task<int> SaveAsync(int idWell, IEnumerable<DrillParamsDto> dtos, CancellationToken token = default);
|
2021-10-11 15:21:26 +05:00
|
|
|
|
}
|
|
|
|
|
}
|