feat: role CRUD page

This commit is contained in:
tao.chen
2026-08-25 22:52:00 +08:00
parent 5ed7e12a23
commit 6fe2d0b42e
12 changed files with 891 additions and 6 deletions
+9
View File
@@ -279,6 +279,15 @@ export function useApi(): WorkspaceBoundApi {
rawApi.updatePlatformEmployee(userId, input),
deleteEmployee: (userId) => rawApi.deleteEmployee(workspaceId, userId),
deletePlatformEmployee: (userId) => rawApi.deletePlatformEmployee(userId),
// Role Management - 角色管理接口(跨 workspace,不需要传入 workspaceId
listPlatformRoles: () => rawApi.listPlatformRoles(),
getPlatformRole: (roleCode) => rawApi.getPlatformRole(roleCode),
listPlatformPermissions: () => rawApi.listPlatformPermissions(),
createPlatformRole: (input) => rawApi.createPlatformRole(input),
updatePlatformRole: (roleCode, input) => rawApi.updatePlatformRole(roleCode, input),
deletePlatformRole: (roleCode) => rawApi.deletePlatformRole(roleCode),
updatePlatformRolePermissions: (roleCode, permissionCodes) =>
rawApi.updatePlatformRolePermissions(roleCode, permissionCodes),
createScheduleNode: (scheduleId, input) =>
rawApi.createScheduleNode(workspaceId, scheduleId, input),
updateScheduleNode: (scheduleId, nodeId, input) =>