forked from ddrilling/AsbCloudServer
52 lines
1.8 KiB
C#
52 lines
1.8 KiB
C#
|
using AsbCloudApp.Data;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.Threading;
|
|||
|
using System.Threading.Tasks;
|
|||
|
|
|||
|
namespace AsbCloudApp.Repositories
|
|||
|
{
|
|||
|
#nullable enable
|
|||
|
/// <summary>
|
|||
|
/// Репозиторий "Дело скважины"
|
|||
|
/// </summary>
|
|||
|
public interface IWellFinalDocumentsRepository
|
|||
|
{
|
|||
|
/// <summary>
|
|||
|
/// Обновление всех записей по скважине
|
|||
|
/// </summary>
|
|||
|
/// <param name="idWell"></param>
|
|||
|
/// <param name="dtos"></param>
|
|||
|
/// <param name="token"></param>
|
|||
|
/// <returns></returns>
|
|||
|
Task<IEnumerable<WellFinalDocumentDBDto>> UpdateRangeAsync(int idWell, IEnumerable<WellFinalDocumentInputDto>? dtos, CancellationToken token);
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// Получение всех записей
|
|||
|
/// </summary>
|
|||
|
/// <param name="idWell"></param>
|
|||
|
/// <param name="idUser"></param>
|
|||
|
/// <param name="token"></param>
|
|||
|
/// <returns></returns>
|
|||
|
Task<WellCaseDto> GetByWellIdAsync(int idWell, int idUser, CancellationToken token);
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// Получение списка ответственных
|
|||
|
/// </summary>
|
|||
|
/// <param name="idWell"></param>
|
|||
|
/// <param name="token"></param>
|
|||
|
/// <returns></returns>
|
|||
|
Task<IEnumerable<UserDto>> GetAvailableUsersAsync(int idWell, CancellationToken token);
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// Сохранение категории файла
|
|||
|
/// </summary>
|
|||
|
/// <param name="idWell"></param>
|
|||
|
/// <param name="idCategory"></param>
|
|||
|
/// <param name="idUser"></param>
|
|||
|
/// <param name="token"></param>
|
|||
|
/// <returns></returns>
|
|||
|
Task<WellFinalDocumentDBDto> SaveCategoryAsync(int idWell, int idCategory, int idUser, CancellationToken token);
|
|||
|
}
|
|||
|
#nullable disable
|
|||
|
}
|