// 直接路由映射文件 // 此文件由 route-mapping-plugin 在构建时生成 // 包含路由配置分析结果和API收集结果 // 请勿手动修改 export const directRouteMappings = { // 路由配置分析结果 routes: [ { "path": "/", "component": "MainLayout", "module": "home", "description": "首页" }, { "path": "/user-management", "name": "UserManagement", "component": "UserManagement", "module": "user-management", "description": "用户管理" }, { "path": "/settings", "name": "Settings", "component": "Settings", "module": "settings", "description": "用户设置" }, { "path": "/user-profile", "name": "UserProfile", "component": "UserProfile", "module": "user-management", "description": "用户管理" }, { "path": "/role-management", "name": "RoleManagement", "component": "RoleManagement", "module": "role-management", "description": "角色管理" } ], // API收集结果(包含页面关联和路径完善) apiMappings: [ { "module": "user-management", "serviceName": "userService", "servicePath": "D:\\manta\\gofaster\\app\\src\\renderer\\modules\\user-management\\services\\userService.js", "apiMappings": [ { "apiMethodName": "getUsers", "method": "GET", "path": "/auth/admin/users", "line": 50, "triggerSources": [ { "component": "UserManagement", "triggerName": null, "triggerType": "page" } ] }, { "apiMethodName": "createUser", "method": "POST", "path": "/auth/admin/users", "line": 74, "triggerSources": [ { "component": "UserManagement", "triggerName": "usermanagement-tcfjru", "triggerType": "button" } ] }, { "apiMethodName": "updateUser", "method": "PUT", "path": "/auth/admin/users/{id}", "line": 85, "triggerSources": [ { "component": "UserManagement", "triggerName": "usermanagement-tcfjru", "triggerType": "button" } ] }, { "apiMethodName": "deleteUser", "method": "DELETE", "path": "/auth/admin/users/{id}", "line": 96, "triggerSources": [ { "component": "UserManagement", "triggerName": "usermanagement-djl8u7", "triggerType": "button" } ] }, { "apiMethodName": "getRoles", "method": "GET", "path": "/auth/admin/roles", "line": 107, "triggerSources": [ { "component": "UserManagement", "triggerName": null, "triggerType": "page" } ] }, { "apiMethodName": "changePassword", "method": "POST", "path": "/auth/change-password", "line": 118, "triggerSources": [ { "component": "PasswordChangeModal", "triggerName": "passwordchangemodal-krxyp6", "triggerType": "button" } ] }, { "apiMethodName": "getPasswordPolicy", "method": "GET", "path": "/auth/password-policy", "line": 129, "triggerSources": [ { "component": "PasswordChangeModal", "triggerName": null, "triggerType": "page" } ] }, { "apiMethodName": "validatePassword", "method": "POST", "path": "/auth/validate-password", "line": 140, "triggerSources": [ { "component": "PasswordChangeModal", "triggerName": null, "triggerType": "page" } ] }, { "apiMethodName": "getCaptcha", "method": "GET", "path": "/auth/captcha", "line": 173, "triggerSources": [ { "component": "LoginModal", "triggerName": null, "triggerType": "page" } ] }, { "apiMethodName": "login", "method": "POST", "path": "/auth/login", "line": 184, "triggerSources": [ { "component": "LoginModal", "triggerName": "loginmodal-ys2551", "triggerType": "button" } ] }, { "apiMethodName": "getCurrentUser", "method": "GET", "path": "/auth/me", "line": 252, "triggerSources": [ { "component": "UserProfile", "triggerName": null, "triggerType": "page" } ] }, { "apiMethodName": "changePassword", "method": "POST", "path": "/auth/change-password", "line": 273, "triggerSources": [ { "component": "PasswordChangeModal", "triggerName": "passwordchangemodal-krxyp6", "triggerType": "button" } ] } ] }, { "module": "role-management", "serviceName": "roleService", "servicePath": "D:\\manta\\gofaster\\app\\src\\renderer\\modules\\role-management\\services\\roleService.js", "apiMappings": [ { "apiMethodName": "getRoles", "method": "GET", "path": "/auth/roles", "line": 47, "triggerSources": [ { "component": "RoleManagement", "triggerName": null, "triggerType": "page" }, { "component": "UserRoleAssignment", "triggerName": null, "triggerType": "page" } ] }, { "apiMethodName": "getRole", "method": "GET", "path": "/auth/roles/{id}", "line": 60, "triggerSources": [ { "component": "PermissionManager", "triggerName": null, "triggerType": "page" } ] }, { "apiMethodName": "createRole", "method": "POST", "path": "/auth/roles", "line": 71, "triggerSources": [ { "component": "RoleManagement", "triggerName": "save-role", "triggerType": "button" } ] }, { "apiMethodName": "updateRole", "method": "PUT", "path": "/auth/roles/{id}", "line": 82, "triggerSources": [ { "component": "RoleManagement", "triggerName": "save-role", "triggerType": "button" }, { "component": "PermissionManager", "triggerName": null, "triggerType": "page" } ] }, { "apiMethodName": "deleteRole", "method": "DELETE", "path": "/auth/roles/{id}", "line": 93, "triggerSources": [ { "component": "RoleManagement", "triggerName": "delete-role", "triggerType": "button" } ] }, { "apiMethodName": "getPermissions", "method": "GET", "path": "/auth/permissions", "line": 104, "triggerSources": [ { "component": "PermissionManager", "triggerName": null, "triggerType": "page" }, { "component": "RolePermissionAssignment", "triggerName": null, "triggerType": "page" } ] }, { "apiMethodName": "assignRolesToUser", "method": "POST", "path": "/auth/roles/users/{userId}/assign", "line": 115, "triggerSources": [ { "component": "UserRoleAssignment", "triggerName": null, "triggerType": "page" } ] }, { "apiMethodName": "getUserRoles", "method": "GET", "path": "/auth/roles/users/{userId}", "line": 128, "triggerSources": [ { "component": "UserRoleAssignment", "triggerName": null, "triggerType": "page" } ] }, { "apiMethodName": "removeRolesFromUser", "method": "DELETE", "path": "/auth/roles/users/{userId}/remove", "line": 139, "triggerSources": [ { "component": "UserRoleAssignment", "triggerName": null, "triggerType": "page" } ] }, { "apiMethodName": "getRolePermissions", "method": "GET", "path": "/auth/permissions/roles/{roleId}", "line": 152, "triggerSources": [ { "component": "RolePermissionAssignment", "triggerName": null, "triggerType": "page" } ] }, { "apiMethodName": "assignPermissionsToRole", "method": "POST", "path": "/auth/permissions/roles/{roleId}/assign", "line": 163, "triggerSources": [ { "component": "RolePermissionAssignment", "triggerName": null, "triggerType": "page" } ] }, { "apiMethodName": "removePermissionsFromRole", "method": "DELETE", "path": "/auth/permissions/roles/{roleId}/remove", "line": 176, "triggerSources": [ { "component": "RolePermissionAssignment", "triggerName": null, "triggerType": "page" } ] } ] } ] } export default directRouteMappings