Files
parr_api/PARR.Constants/ParrRoles.cs

45 lines
1.2 KiB
C#
Raw Normal View History

2023-12-01 10:05:54 +10:00
namespace PARR.Constants
{
/// <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 = "Робот ЕСПП";
}
}
}