324 lines
7.8 KiB
C#
324 lines
7.8 KiB
C#
namespace OrpaonVision.ConfigApp.Infrastructure.Constants;
|
|
|
|
/// <summary>
|
|
/// 系统权限常量定义。
|
|
/// </summary>
|
|
public static class SystemPermissions
|
|
{
|
|
/// <summary>
|
|
/// 模块前缀。
|
|
/// </summary>
|
|
public const string MODULE_PREFIX = "ORPAON";
|
|
|
|
// === 基础权限 ===
|
|
|
|
/// <summary>
|
|
/// 系统登录。
|
|
/// </summary>
|
|
public const string SYSTEM_LOGIN = "SYSTEM_LOGIN";
|
|
|
|
/// <summary>
|
|
/// 查看系统信息。
|
|
/// </summary>
|
|
public const string SYSTEM_VIEW_INFO = "SYSTEM_VIEW_INFO";
|
|
|
|
// === CVAT集成权限 ===
|
|
|
|
/// <summary>
|
|
/// 查看CVAT连接状态。
|
|
/// </summary>
|
|
public const string CVAT_VIEW_STATUS = "CVAT_VIEW_STATUS";
|
|
|
|
/// <summary>
|
|
/// 测试CVAT连接。
|
|
/// </summary>
|
|
public const string CVAT_TEST_CONNECTION = "CVAT_TEST_CONNECTION";
|
|
|
|
/// <summary>
|
|
/// 同步CVAT项目。
|
|
/// </summary>
|
|
public const string CVAT_SYNC_PROJECT = "CVAT_SYNC_PROJECT";
|
|
|
|
/// <summary>
|
|
/// 查看CVAT任务详情。
|
|
/// </summary>
|
|
public const string CVAT_VIEW_TASK_DETAIL = "CVAT_VIEW_TASK_DETAIL";
|
|
|
|
// === 规则配置权限 ===
|
|
|
|
/// <summary>
|
|
/// 查看规则配置。
|
|
/// </summary>
|
|
public const string RULE_VIEW = "RULE_VIEW";
|
|
|
|
/// <summary>
|
|
/// 创建规则草稿。
|
|
/// </summary>
|
|
public const string RULE_CREATE_DRAFT = "RULE_CREATE_DRAFT";
|
|
|
|
/// <summary>
|
|
/// 发布规则版本。
|
|
/// </summary>
|
|
public const string RULE_PUBLISH = "RULE_PUBLISH";
|
|
|
|
/// <summary>
|
|
/// 回滚规则版本。
|
|
/// </summary>
|
|
public const string RULE_ROLLBACK = "RULE_ROLLBACK";
|
|
|
|
/// <summary>
|
|
/// 停用规则版本。
|
|
/// </summary>
|
|
public const string RULE_DISABLE = "RULE_DISABLE";
|
|
|
|
/// <summary>
|
|
/// 查看规则审计记录。
|
|
/// </summary>
|
|
public const string RULE_VIEW_AUDIT = "RULE_VIEW_AUDIT";
|
|
|
|
// === 训练任务权限 ===
|
|
|
|
/// <summary>
|
|
/// 查看训练任务。
|
|
/// </summary>
|
|
public const string TRAINING_VIEW = "TRAINING_VIEW";
|
|
|
|
/// <summary>
|
|
/// 创建训练任务。
|
|
/// </summary>
|
|
public const string TRAINING_CREATE = "TRAINING_CREATE";
|
|
|
|
/// <summary>
|
|
/// 启动训练任务。
|
|
/// </summary>
|
|
public const string TRAINING_START = "TRAINING_START";
|
|
|
|
/// <summary>
|
|
/// 停止训练任务。
|
|
/// </summary>
|
|
public const string TRAINING_STOP = "TRAINING_STOP";
|
|
|
|
/// <summary>
|
|
/// 删除训练任务。
|
|
/// </summary>
|
|
public const string TRAINING_DELETE = "TRAINING_DELETE";
|
|
|
|
// === 用户管理权限 ===
|
|
|
|
/// <summary>
|
|
/// 查看用户列表。
|
|
/// </summary>
|
|
public const string USER_VIEW = "USER_VIEW";
|
|
|
|
/// <summary>
|
|
/// 创建用户。
|
|
/// </summary>
|
|
public const string USER_CREATE = "USER_CREATE";
|
|
|
|
/// <summary>
|
|
/// 编辑用户。
|
|
/// </summary>
|
|
public const string USER_EDIT = "USER_EDIT";
|
|
|
|
/// <summary>
|
|
/// 删除用户。
|
|
/// </summary>
|
|
public const string USER_DELETE = "USER_DELETE";
|
|
|
|
/// <summary>
|
|
/// 启用/禁用用户。
|
|
/// </summary>
|
|
public const string USER_TOGGLE_STATUS = "USER_TOGGLE_STATUS";
|
|
|
|
/// <summary>
|
|
/// 重置用户密码。
|
|
/// </summary>
|
|
public const string USER_RESET_PASSWORD = "USER_RESET_PASSWORD";
|
|
|
|
// === 角色管理权限 ===
|
|
|
|
/// <summary>
|
|
/// 查看角色列表。
|
|
/// </summary>
|
|
public const string ROLE_VIEW = "ROLE_VIEW";
|
|
|
|
/// <summary>
|
|
/// 创建角色。
|
|
/// </summary>
|
|
public const string ROLE_CREATE = "ROLE_CREATE";
|
|
|
|
/// <summary>
|
|
/// 编辑角色。
|
|
/// </summary>
|
|
public const string ROLE_EDIT = "ROLE_EDIT";
|
|
|
|
/// <summary>
|
|
/// 删除角色。
|
|
/// </summary>
|
|
public const string ROLE_DELETE = "ROLE_DELETE";
|
|
|
|
/// <summary>
|
|
/// 分配角色权限。
|
|
/// </summary>
|
|
public const string ROLE_ASSIGN_PERMISSION = "ROLE_ASSIGN_PERMISSION";
|
|
|
|
// === 产品会话管理权限 ===
|
|
|
|
/// <summary>
|
|
/// 查看产品会话。
|
|
/// </summary>
|
|
public const string SESSION_VIEW = "SESSION_VIEW";
|
|
|
|
/// <summary>
|
|
/// 导出会话数据。
|
|
/// </summary>
|
|
public const string SESSION_EXPORT = "SESSION_EXPORT";
|
|
|
|
/// <summary>
|
|
/// 删除会话记录。
|
|
/// </summary>
|
|
public const string SESSION_DELETE = "SESSION_DELETE";
|
|
|
|
// === 系统管理权限 ===
|
|
|
|
/// <summary>
|
|
/// 查看系统日志。
|
|
/// </summary>
|
|
public const string SYSTEM_VIEW_LOG = "SYSTEM_VIEW_LOG";
|
|
|
|
/// <summary>
|
|
/// 系统设置。
|
|
/// </summary>
|
|
public const string SYSTEM_SETTINGS = "SYSTEM_SETTINGS";
|
|
|
|
/// <summary>
|
|
/// 数据备份。
|
|
/// </summary>
|
|
public const string SYSTEM_BACKUP = "SYSTEM_BACKUP";
|
|
|
|
/// <summary>
|
|
/// 数据恢复。
|
|
/// </summary>
|
|
public const string SYSTEM_RESTORE = "SYSTEM_RESTORE";
|
|
|
|
// === 机种管理权限 ===
|
|
|
|
/// <summary>
|
|
/// 查看机种列表。
|
|
/// </summary>
|
|
public const string PRODUCT_VIEW = "PRODUCT_VIEW";
|
|
|
|
/// <summary>
|
|
/// 创建机种。
|
|
/// </summary>
|
|
public const string PRODUCT_CREATE = "PRODUCT_CREATE";
|
|
|
|
/// <summary>
|
|
/// 编辑机种。
|
|
/// </summary>
|
|
public const string PRODUCT_EDIT = "PRODUCT_EDIT";
|
|
|
|
/// <summary>
|
|
/// 发布机种。
|
|
/// </summary>
|
|
public const string PRODUCT_PUBLISH = "PRODUCT_PUBLISH";
|
|
|
|
/// <summary>
|
|
/// 停用机种。
|
|
/// </summary>
|
|
public const string PRODUCT_DISABLE = "PRODUCT_DISABLE";
|
|
|
|
/// <summary>
|
|
/// 切换机种。
|
|
/// </summary>
|
|
public const string PRODUCT_SWITCH = "PRODUCT_SWITCH";
|
|
|
|
/// <summary>
|
|
/// 强制切换机种(班组长权限)。
|
|
/// </summary>
|
|
public const string PRODUCT_FORCE_SWITCH = "PRODUCT_FORCE_SWITCH";
|
|
|
|
/// <summary>
|
|
/// 查看机种权限分配。
|
|
/// </summary>
|
|
public const string PRODUCT_VIEW_PERMISSION = "PRODUCT_VIEW_PERMISSION";
|
|
|
|
/// <summary>
|
|
/// 分配机种权限。
|
|
/// </summary>
|
|
public const string PRODUCT_ASSIGN_PERMISSION = "PRODUCT_ASSIGN_PERMISSION";
|
|
|
|
// === 运行时权限 ===
|
|
|
|
/// <summary>
|
|
/// 启动运行时。
|
|
/// </summary>
|
|
public const string RUNTIME_START = "RUNTIME_START";
|
|
|
|
/// <summary>
|
|
/// 停止运行时。
|
|
/// </summary>
|
|
public const string RUNTIME_STOP = "RUNTIME_STOP";
|
|
|
|
/// <summary>
|
|
/// 暂停运行时。
|
|
/// </summary>
|
|
public const string RUNTIME_PAUSE = "RUNTIME_PAUSE";
|
|
|
|
/// <summary>
|
|
/// 恢复运行时。
|
|
/// </summary>
|
|
public const string RUNTIME_RESUME = "RUNTIME_RESUME";
|
|
|
|
/// <summary>
|
|
/// 重置运行时。
|
|
/// </summary>
|
|
public const string RUNTIME_RESET = "RUNTIME_RESET";
|
|
|
|
/// <summary>
|
|
/// 人工复位放行(班组长权限)。
|
|
/// </summary>
|
|
public const string RUNTIME_MANUAL_OVERRIDE = "RUNTIME_MANUAL_OVERRIDE";
|
|
|
|
/// <summary>
|
|
/// 查看运行时状态。
|
|
/// </summary>
|
|
public const string RUNTIME_VIEW_STATUS = "RUNTIME_VIEW_STATUS";
|
|
}
|
|
|
|
/// <summary>
|
|
/// 系统角色常量定义。
|
|
/// </summary>
|
|
public static class SystemRoles
|
|
{
|
|
/// <summary>
|
|
/// 系统管理员。
|
|
/// </summary>
|
|
public const string ADMIN = "ADMIN";
|
|
|
|
/// <summary>
|
|
/// 工艺工程师。
|
|
/// </summary>
|
|
public const string PROCESS_ENGINEER = "PROCESS_ENGINEER";
|
|
|
|
/// <summary>
|
|
/// 算法工程师。
|
|
/// </summary>
|
|
public const string ALGORITHM_ENGINEER = "ALGORITHM_ENGINEER";
|
|
|
|
/// <summary>
|
|
/// 质量工程师。
|
|
/// </summary>
|
|
public const string QUALITY_ENGINEER = "QUALITY_ENGINEER";
|
|
|
|
/// <summary>
|
|
/// 操作员。
|
|
/// </summary>
|
|
public const string OPERATOR = "OPERATOR";
|
|
|
|
/// <summary>
|
|
/// 观察者。
|
|
/// </summary>
|
|
public const string VIEWER = "VIEWER";
|
|
}
|