forked from ddrilling/AsbCloudServer
Степанов Дмитрий
abf3f4e60b
1. Добавил DTO для проработки 2. Добавил интерфейсы для сервиса и репозитория
39 lines
1.4 KiB
C#
39 lines
1.4 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Threading;
|
|
using System.Threading.Tasks;
|
|
using AsbCloudApp.Data.ProcessMap;
|
|
|
|
namespace AsbCloudApp.Services;
|
|
|
|
/// <summary>
|
|
/// Сервис для проработок скважины
|
|
/// </summary>
|
|
public interface IProcessMapWellboreDevelopmentService
|
|
{
|
|
/// <summary>
|
|
/// Добавить запись проработки
|
|
/// </summary>
|
|
/// <param name="processMapWellboreDevelopment"></param>
|
|
/// <param name="cancellationToken"></param>
|
|
/// <returns></returns>
|
|
Task<int> InsertAsync(ProcessMapWellboreDevelopmentDto processMapWellboreDevelopment, CancellationToken cancellationToken);
|
|
|
|
/// <summary>
|
|
/// Обновить запись проработки
|
|
/// </summary>
|
|
/// <param name="processMapWellboreDevelopment"></param>
|
|
/// <param name="cancellationToken"></param>
|
|
/// <returns></returns>
|
|
Task<int> UpdateAsync(ProcessMapWellboreDevelopmentDto processMapWellboreDevelopment, CancellationToken cancellationToken);
|
|
|
|
/// <summary>
|
|
/// Получить записи проработок по уникальному ключу телеметрии
|
|
/// </summary>
|
|
/// <param name="uid"></param>
|
|
/// <param name="updateFrom"></param>
|
|
/// <param name="cancellationToken"></param>
|
|
/// <returns></returns>
|
|
Task<IEnumerable<ProcessMapWellboreDevelopmentDto>> GetByTelemetryAsync(string uid, DateTime updateFrom,
|
|
CancellationToken cancellationToken);
|
|
} |