2020-04-03 18:03:36 +02:00
|
|
|
using System.Collections.Generic;
|
2020-06-24 13:00:50 +02:00
|
|
|
using zero.Core.Attributes;
|
2020-11-11 13:44:52 +01:00
|
|
|
using zero.Core.Identity;
|
2020-04-03 18:03:36 +02:00
|
|
|
|
|
|
|
|
namespace zero.Core.Entities
|
|
|
|
|
{
|
2020-11-05 00:27:02 +01:00
|
|
|
public class BackofficeUserRole : ZeroEntity, IBackofficeUserRole, IZeroDbConventions
|
2020-04-03 18:03:36 +02:00
|
|
|
{
|
2020-04-16 12:56:17 +02:00
|
|
|
/// <inheritdoc/>
|
|
|
|
|
public string Description { get; set; }
|
|
|
|
|
|
2020-04-03 18:03:36 +02:00
|
|
|
/// <inheritdoc/>
|
|
|
|
|
public string Icon { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <inheritdoc/>
|
2020-04-14 20:16:04 +02:00
|
|
|
public List<IUserClaim> Claims { get; set; } = new List<IUserClaim>();
|
2020-04-03 18:03:36 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2020-11-25 00:51:01 +01:00
|
|
|
[Collection("Roles")]
|
2020-11-14 12:34:26 +01:00
|
|
|
public interface IBackofficeUserRole : IZeroEntity, IZeroDbConventions, IIdentityUserRole
|
2020-04-03 18:03:36 +02:00
|
|
|
{
|
2020-04-16 12:56:17 +02:00
|
|
|
/// <summary>
|
|
|
|
|
/// Additional description
|
|
|
|
|
/// </summary>
|
|
|
|
|
string Description { get; set; }
|
|
|
|
|
|
2020-04-03 18:03:36 +02:00
|
|
|
/// <summary>
|
|
|
|
|
/// Displayed icon alongside name
|
|
|
|
|
/// </summary>
|
|
|
|
|
string Icon { get; set; }
|
|
|
|
|
}
|
2020-04-08 13:07:15 +02:00
|
|
|
}
|