forked from ddrilling/AsbCloudServer
31 lines
1.1 KiB
C#
31 lines
1.1 KiB
C#
|
using System.Collections.Generic;
|
|||
|
using System.Threading;
|
|||
|
using System.Threading.Tasks;
|
|||
|
using AsbCloudApp.Data.Manuals;
|
|||
|
using AsbCloudApp.Services;
|
|||
|
|
|||
|
namespace AsbCloudApp.Repositories;
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// Репозиторий для работы с папки хранящими инструкциями
|
|||
|
/// </summary>
|
|||
|
public interface IManualFolderRepository : ICrudRepository<ManualFolderDto>
|
|||
|
{
|
|||
|
/// <summary>
|
|||
|
/// Получение дерева каталога папок
|
|||
|
/// </summary>
|
|||
|
/// <param name="idCategory"></param>
|
|||
|
/// <param name="cancellationToken"></param>
|
|||
|
/// <returns></returns>
|
|||
|
Task<IEnumerable<ManualFolderDto>> GetTreeAsync(int idCategory, CancellationToken cancellationToken);
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// Получение одной папки по параметрам
|
|||
|
/// </summary>
|
|||
|
/// <param name="name"></param>
|
|||
|
/// <param name="idParent"></param>
|
|||
|
/// <param name="idCategory"></param>
|
|||
|
/// <param name="cancellationToken"></param>
|
|||
|
/// <returns></returns>
|
|||
|
Task<ManualFolderDto?> GetOrDefaultAsync(string name, int? idParent, int idCategory, CancellationToken cancellationToken);
|
|||
|
}
|