35 lines
769 B
C#
35 lines
769 B
C#
using System.Collections.Generic;
|
|
|
|
namespace zero.Core.Entities
|
|
{
|
|
public class UserRole : DatabaseEntity, IUserRole
|
|
{
|
|
/// <inheritdoc/>
|
|
public string Description { get; set; }
|
|
|
|
/// <inheritdoc/>
|
|
public string Icon { get; set; }
|
|
|
|
/// <inheritdoc/>
|
|
public List<IUserClaim> Claims { get; set; } = new List<IUserClaim>();
|
|
}
|
|
|
|
|
|
public interface IUserRole : IDatabaseEntity
|
|
{
|
|
/// <summary>
|
|
/// Additional description
|
|
/// </summary>
|
|
string Description { get; set; }
|
|
|
|
/// <summary>
|
|
/// Displayed icon alongside name
|
|
/// </summary>
|
|
string Icon { get; set; }
|
|
|
|
/// <summary>
|
|
/// The user's claims, for use in claims-based authentication.
|
|
/// </summary>
|
|
List<IUserClaim> Claims { get; set; }
|
|
}
|
|
} |