2020-03-22 14:18:34 +01:00
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
2020-03-24 23:09:29 +01:00
|
|
|
namespace zero.Core.Entities
|
2020-03-22 14:18:34 +01:00
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// A section is a main part of the backoffice application
|
|
|
|
|
/// </summary>
|
|
|
|
|
public interface ISection
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The section alias which acts as the url slug for navigation
|
|
|
|
|
/// </summary>
|
|
|
|
|
string Alias { get; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The name of the section (either a string or a translation key with @ prefix)
|
|
|
|
|
/// </summary>
|
|
|
|
|
string Name { get; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Icon of the section
|
|
|
|
|
/// </summary>
|
|
|
|
|
string Icon { get; }
|
|
|
|
|
|
2020-04-05 00:39:12 +02:00
|
|
|
/// <summary>
|
|
|
|
|
/// HEX color (#aabbcc or #abc)
|
|
|
|
|
/// </summary>
|
|
|
|
|
string Color { get; }
|
|
|
|
|
|
2020-03-22 14:18:34 +01:00
|
|
|
/// <summary>
|
|
|
|
|
/// Children are displayed as a sub-navigation in the main nav area
|
|
|
|
|
/// </summary>
|
|
|
|
|
IList<IChildSection> Children { get; }
|
|
|
|
|
}
|
|
|
|
|
}
|