27 lines
868 B
C#
27 lines
868 B
C#
#nullable enable
|
|
|
|
using System.Collections.Generic;
|
|
|
|
namespace DTNavigation.Model
|
|
{
|
|
/// <summary>1뎁스 네비게이션 항목 데이터 모델</summary>
|
|
public record NavItemModel
|
|
{
|
|
public string Id { get; set; } = string.Empty;
|
|
public string Label { get; set; } = string.Empty;
|
|
|
|
/// <summary>자식 항목 없이 단독으로 표시되는 최상위 항목 (예: 전체OVERVIEW)</summary>
|
|
public bool IsTopLevel { get; set; }
|
|
|
|
public IReadOnlyList<NavChildItemModel> Children { get; set; } = new List<NavChildItemModel>();
|
|
public bool HasChildren => Children.Count > 0;
|
|
}
|
|
|
|
/// <summary>2뎁스 자식 항목 데이터 모델</summary>
|
|
public record NavChildItemModel
|
|
{
|
|
public string Id { get; set; } = string.Empty;
|
|
public string Label { get; set; } = string.Empty;
|
|
}
|
|
}
|