21 lines
729 B
C#
21 lines
729 B
C#
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);
|
|
|
|
/// <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);
|
|
}
|
|
}
|