From a95fe3db06939a641f4139febb57d59258a8e6ff Mon Sep 17 00:00:00 2001 From: Leo <98382335+gaoziman@users.noreply.github.com> Date: Tue, 8 Jul 2025 10:52:46 +0800 Subject: [PATCH] =?UTF-8?q?feat(permissions):=20=E6=89=A9=E5=B1=95?= =?UTF-8?q?=E6=9D=83=E9=99=90=E5=B8=B8=E9=87=8F=E5=AE=9A=E4=B9=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 新增操作日志权限常量(OPER_LOG.SEARCH, OPER_LOG.DELETE) - 完善系统管理员权限组,包含所有新增权限模块 - 为后续操作日志功能模块提供权限支持 --- src/constants/permissions.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/constants/permissions.ts b/src/constants/permissions.ts index 2f49df8..1574ea3 100644 --- a/src/constants/permissions.ts +++ b/src/constants/permissions.ts @@ -41,6 +41,12 @@ export const PERMISSIONS = { UPDATE: 'system:loginlog:update', DELETE: 'system:loginlog:delete', }, + + // 操作日志权限 + OPER_LOG: { + SEARCH: 'system:operlog:search', + DELETE: 'system:operlog:delete', + }, } as const // 权限类型推断 @@ -78,5 +84,6 @@ export const PERMISSION_GROUPS = { ...Object.values(PERMISSIONS.ROLE), ...Object.values(PERMISSIONS.MENU), ...Object.values(PERMISSIONS.LOGIN_LOG), + ...Object.values(PERMISSIONS.OPER_LOG), ], } as const