| 123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- namespace Admin.NET.Plugin.AiDOP.Const.S8;
- /// <summary>
- /// S8 权限点条目(Catalog 真源,不依赖数据库)。
- /// </summary>
- public sealed class S8PermissionItem
- {
- public string Code { get; init; } = string.Empty;
- public string Label { get; init; } = string.Empty;
- public string Group { get; init; } = string.Empty;
- public int SortNo { get; init; }
- }
- /// <summary>
- /// S8 权限点目录(B0 阶段静态 catalog;后续 B2 矩阵 / B3 v-auth / B4 后端兜底统一从此读取)。
- /// 命名规范:s8:<resource>:<action>
- /// </summary>
- public static class S8PermissionCatalog
- {
- public const string GroupException = "exception";
- public const string GroupVerification = "verification";
- public const string GroupConfig = "config";
- public const string GroupDashboard = "dashboard";
- private static readonly IReadOnlyList<S8PermissionItem> _all = new List<S8PermissionItem>
- {
- new() { Code = "s8:exception:read", Label = "查看异常", Group = GroupException, SortNo = 10 },
- new() { Code = "s8:exception:create", Label = "主动提报", Group = GroupException, SortNo = 20 },
- new() { Code = "s8:exception:assign", Label = "分派异常", Group = GroupException, SortNo = 30 },
- new() { Code = "s8:exception:claim", Label = "认领异常", Group = GroupException, SortNo = 40 },
- new() { Code = "s8:exception:start", Label = "开始处理", Group = GroupException, SortNo = 50 },
- new() { Code = "s8:exception:reject", Label = "驳回异常", Group = GroupException, SortNo = 60 },
- new() { Code = "s8:exception:upgrade", Label = "升级异常", Group = GroupException, SortNo = 70 },
- new() { Code = "s8:exception:close", Label = "关闭异常", Group = GroupException, SortNo = 80 },
- new() { Code = "s8:verification:submit", Label = "提交复检", Group = GroupVerification, SortNo = 110 },
- new() { Code = "s8:verification:approve", Label = "检验通过", Group = GroupVerification, SortNo = 120 },
- new() { Code = "s8:verification:reject", Label = "检验退回", Group = GroupVerification, SortNo = 130 },
- new() { Code = "s8:config:read", Label = "查看配置", Group = GroupConfig, SortNo = 210 },
- new() { Code = "s8:config:operator:bind", Label = "维护操作员绑定", Group = GroupConfig, SortNo = 220 },
- new() { Code = "s8:config:role:write", Label = "维护角色权限", Group = GroupConfig, SortNo = 230 },
- new() { Code = "s8:dashboard:read", Label = "查看看板", Group = GroupDashboard, SortNo = 310 },
- };
- public static IReadOnlyList<S8PermissionItem> All => _all;
- }
|