|
|
|
// 直接路由映射文件
|
|
|
|
// 此文件由 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": [
|
|
|
|
{
|
|
|
|
"methodName": "getUsers",
|
|
|
|
"method": "GET",
|
|
|
|
"path": "/auth/admin/users",
|
|
|
|
"line": 51,
|
|
|
|
"callingComponents": [
|
|
|
|
{
|
|
|
|
"component": "UserManagement",
|
|
|
|
"path": "/user-management"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"methodName": "createUser",
|
|
|
|
"method": "POST",
|
|
|
|
"path": "/auth/admin/users",
|
|
|
|
"line": 73,
|
|
|
|
"callingComponents": [
|
|
|
|
{
|
|
|
|
"component": "UserManagement",
|
|
|
|
"path": "/user-management"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"methodName": "updateUser",
|
|
|
|
"method": "PUT",
|
|
|
|
"path": "/auth/admin/users/{id}",
|
|
|
|
"line": 83,
|
|
|
|
"callingComponents": [
|
|
|
|
{
|
|
|
|
"component": "UserManagement",
|
|
|
|
"path": "/user-management"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"methodName": "deleteUser",
|
|
|
|
"method": "DELETE",
|
|
|
|
"path": "/auth/admin/users/{id}",
|
|
|
|
"line": 93,
|
|
|
|
"callingComponents": [
|
|
|
|
{
|
|
|
|
"component": "UserManagement",
|
|
|
|
"path": "/user-management"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"methodName": "changePassword",
|
|
|
|
"method": "POST",
|
|
|
|
"path": "/auth/change-password",
|
|
|
|
"line": 113,
|
|
|
|
"callingComponents": [
|
|
|
|
{
|
|
|
|
"component": "PasswordChangeModal",
|
|
|
|
"path": "/"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"methodName": "getPasswordPolicy",
|
|
|
|
"method": "GET",
|
|
|
|
"path": "/auth/password-policy",
|
|
|
|
"line": 123,
|
|
|
|
"callingComponents": [
|
|
|
|
{
|
|
|
|
"component": "PasswordChangeModal",
|
|
|
|
"path": "/"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"methodName": "validatePassword",
|
|
|
|
"method": "POST",
|
|
|
|
"path": "/auth/validate-password",
|
|
|
|
"line": 133,
|
|
|
|
"callingComponents": [
|
|
|
|
{
|
|
|
|
"component": "PasswordChangeModal",
|
|
|
|
"path": "/"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"methodName": "getCaptcha",
|
|
|
|
"method": "GET",
|
|
|
|
"path": "/auth/captcha",
|
|
|
|
"line": 163,
|
|
|
|
"callingComponents": [
|
|
|
|
{
|
|
|
|
"component": "LoginModal",
|
|
|
|
"path": "/"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"methodName": "login",
|
|
|
|
"method": "POST",
|
|
|
|
"path": "/auth/login",
|
|
|
|
"line": 182,
|
|
|
|
"callingComponents": [
|
|
|
|
{
|
|
|
|
"component": "LoginModal",
|
|
|
|
"path": "/"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"methodName": "getCurrentUser",
|
|
|
|
"method": "GET",
|
|
|
|
"path": "/auth/userinfo",
|
|
|
|
"line": 245,
|
|
|
|
"callingComponents": [
|
|
|
|
{
|
|
|
|
"component": "UserProfile",
|
|
|
|
"path": "/user-profile"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"methodName": "changePassword",
|
|
|
|
"method": "POST",
|
|
|
|
"path": "/auth/change-password",
|
|
|
|
"line": 259,
|
|
|
|
"callingComponents": [
|
|
|
|
{
|
|
|
|
"component": "PasswordChangeModal",
|
|
|
|
"path": "/"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"module": "role-management",
|
|
|
|
"serviceName": "roleService",
|
|
|
|
"servicePath": "D:\\manta\\gofaster\\app\\src\\renderer\\modules\\role-management\\services\\roleService.js",
|
|
|
|
"apiMappings": [
|
|
|
|
{
|
|
|
|
"methodName": "getRoles",
|
|
|
|
"method": "GET",
|
|
|
|
"path": "/auth/roles",
|
|
|
|
"line": 48,
|
|
|
|
"callingComponents": [
|
|
|
|
{
|
|
|
|
"component": "RoleManagement",
|
|
|
|
"path": "/role-management"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"component": "UserRoleAssignment",
|
|
|
|
"path": "/user-management"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"methodName": "getRole",
|
|
|
|
"method": "GET",
|
|
|
|
"path": "/auth/roles/{id}",
|
|
|
|
"line": 60,
|
|
|
|
"callingComponents": [
|
|
|
|
{
|
|
|
|
"component": "PermissionManager",
|
|
|
|
"path": null
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"methodName": "createRole",
|
|
|
|
"method": "POST",
|
|
|
|
"path": "/auth/roles",
|
|
|
|
"line": 70,
|
|
|
|
"callingComponents": [
|
|
|
|
{
|
|
|
|
"component": "RoleManagement",
|
|
|
|
"path": "/role-management"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"methodName": "updateRole",
|
|
|
|
"method": "PUT",
|
|
|
|
"path": "/auth/roles/{id}",
|
|
|
|
"line": 80,
|
|
|
|
"callingComponents": [
|
|
|
|
{
|
|
|
|
"component": "RoleManagement",
|
|
|
|
"path": "/role-management"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"component": "PermissionManager",
|
|
|
|
"path": null
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"methodName": "deleteRole",
|
|
|
|
"method": "DELETE",
|
|
|
|
"path": "/auth/roles/{id}",
|
|
|
|
"line": 90,
|
|
|
|
"callingComponents": [
|
|
|
|
{
|
|
|
|
"component": "RoleManagement",
|
|
|
|
"path": "/role-management"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"methodName": "getPermissions",
|
|
|
|
"method": "GET",
|
|
|
|
"path": "/auth/permissions",
|
|
|
|
"line": 100,
|
|
|
|
"callingComponents": [
|
|
|
|
{
|
|
|
|
"component": "PermissionManager",
|
|
|
|
"path": null
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"component": "RolePermissionAssignment",
|
|
|
|
"path": "/role-management"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"methodName": "assignRolesToUser",
|
|
|
|
"method": "POST",
|
|
|
|
"path": "/auth/roles/users/{userId}/assign",
|
|
|
|
"line": 110,
|
|
|
|
"callingComponents": [
|
|
|
|
{
|
|
|
|
"component": "UserRoleAssignment",
|
|
|
|
"path": "/user-management"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"methodName": "getUserRoles",
|
|
|
|
"method": "GET",
|
|
|
|
"path": "/auth/roles/users/{userId}",
|
|
|
|
"line": 122,
|
|
|
|
"callingComponents": [
|
|
|
|
{
|
|
|
|
"component": "UserRoleAssignment",
|
|
|
|
"path": "/user-management"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"methodName": "removeRolesFromUser",
|
|
|
|
"method": "DELETE",
|
|
|
|
"path": "/auth/roles/users/{userId}/remove",
|
|
|
|
"line": 132,
|
|
|
|
"callingComponents": [
|
|
|
|
{
|
|
|
|
"component": "UserRoleAssignment",
|
|
|
|
"path": "/user-management"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"methodName": "getRolePermissions",
|
|
|
|
"method": "GET",
|
|
|
|
"path": "/auth/permissions/roles/{roleId}",
|
|
|
|
"line": 144,
|
|
|
|
"callingComponents": [
|
|
|
|
{
|
|
|
|
"component": "RolePermissionAssignment",
|
|
|
|
"path": "/role-management"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"methodName": "assignPermissionsToRole",
|
|
|
|
"method": "POST",
|
|
|
|
"path": "/auth/permissions/roles/{roleId}/assign",
|
|
|
|
"line": 154,
|
|
|
|
"callingComponents": [
|
|
|
|
{
|
|
|
|
"component": "RolePermissionAssignment",
|
|
|
|
"path": "/role-management"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"methodName": "removePermissionsFromRole",
|
|
|
|
"method": "DELETE",
|
|
|
|
"path": "/auth/permissions/roles/{roleId}/remove",
|
|
|
|
"line": 166,
|
|
|
|
"callingComponents": [
|
|
|
|
{
|
|
|
|
"component": "RolePermissionAssignment",
|
|
|
|
"path": "/role-management"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
|
|
|
export default directRouteMappings
|