docs(admin): 权限码常量注释补充后端 PermCodes 对照

在 perm-codes.ts 头部注明后端 platform-core 的嵌套 interface 常量位置与 MENU/Action 语义差异。
This commit is contained in:
DaxPay Dev
2026-07-13 10:00:32 +08:00
parent 0d61a3c5ea
commit 53ebe53ad4

View File

@@ -6,10 +6,11 @@
* | 要点 | 说明 |
* |------|------|
* | 与后端对齐 | 值必须等于 @PermCode 扫描出的完整码 `menuCode:code` |
* | 后端常量 | `daxpay-platform-core` → `cn.daxpay.open.platform.core.code.PermCodes`(嵌套 interface`MENU` + `Action`,非完整码) |
* | 命名约定 | 全部使用下划线(`security_config` 非 `securityConfig`),键名用业务语义 |
* | 粒度约定 | 标准为 `VIEW` + `MANAGE``MANAGE` 含增删改);仅查看的只保留 `VIEW` |
* | 特殊操作 | `PUBLISH`/`KICKOUT`/`RESET_PASSWORD`/`ASSIGN_ROLE`/`STATUS`/`SIGN`/`PAY`/`CREDENTIAL_CONFIG_UPDATE` 独立保留 |
* | menu_code | 菜单注册iam_perm_menu**不**写入本文件 |
* | menu_code | 菜单注册iam_perm_menu**不**写入本文件;后端 `PermCodes.*.MENU` 与之对应 |
* | 顶级域 | merchant / channel / payment / develop / device / iam / system 七域 |
* | 使用方式 | 模板:`v-if="hasPermission(PermCodes....)"` / `hasAnyPermission([...])``usePermission`);脚本:同上 |
* | 已移除 | v-access 指令已删除,仅用 `usePermission` |