2026-04-14 12:01:49 +10:00
|
|
|
|
namespace PARR.Domain.Common.Roles
|
2023-12-01 10:05:54 +10:00
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Роли ПАРР
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public static class ParrRoles
|
|
|
|
|
|
{
|
|
|
|
|
|
// Подробнее о авторизации в документации в разделе Авторизация
|
|
|
|
|
|
|
|
|
|
|
|
private const string Base = Administrator.Role + ",";
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Роль: Администратор
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public static class Administrator
|
|
|
|
|
|
{
|
|
|
|
|
|
public const string Role = "administrator";
|
|
|
|
|
|
|
|
|
|
|
|
public const string Description = "Администратор";
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Роль: agent Агент
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public static class Agent
|
|
|
|
|
|
{
|
|
|
|
|
|
public const string Role = "agent";
|
|
|
|
|
|
public const string RoleOrAdmin = Base + Role;
|
|
|
|
|
|
|
|
|
|
|
|
public const string Description = "Агент";
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Роль: espp-robot Робот ЕСПП
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public static class EsppRobot
|
|
|
|
|
|
{
|
|
|
|
|
|
public const string Role = "espp-robot";
|
|
|
|
|
|
public const string RoleOrAdmin = Base + Role;
|
|
|
|
|
|
|
|
|
|
|
|
public const string Description = "Робот ЕСПП";
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|