feat(dal): таблицы Users, Roles
This commit is contained in:
44
PARR.Constants/ParrRoles.cs
Normal file
44
PARR.Constants/ParrRoles.cs
Normal file
@@ -0,0 +1,44 @@
|
||||
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 = "Робот ЕСПП";
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user