2025-12-09 16:50:35 +10:00
|
|
|
|
using PARR.DAL.Models.Unit;
|
|
|
|
|
|
|
|
|
|
|
|
namespace PARR.DAL.Services.Interfaces.Unit
|
|
|
|
|
|
{
|
|
|
|
|
|
public interface IUnitInUnitService
|
|
|
|
|
|
{
|
|
|
|
|
|
Task<List<UnitInUnit>> GetByParentIdAsync(Guid parentId);
|
|
|
|
|
|
Task<List<UnitInUnit>> GetByChildIdAsync(Guid childId);
|
2025-12-15 11:50:12 +10:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Получает связи, где ChildUnitId unitIds (для IsParent=True).
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
Task<List<UnitInUnit>> GetParentLinksByChildIdsAsync(IEnumerable<Guid> childUnitIds);
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Получает связи, где ParentUnitId unitIds (для IsParent=False).
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
Task<List<UnitInUnit>> GetChildLinksByParentIdsAsync(IEnumerable<Guid> parentUnitIds);
|
2025-12-19 19:15:58 +10:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
IQueryable<UnitInUnit> Get();
|
2025-12-09 16:50:35 +10:00
|
|
|
|
}
|
|
|
|
|
|
}
|