feat: role CRUD page
This commit is contained in:
@@ -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) =>
|
||||
|
||||
Reference in New Issue
Block a user