mirror of
https://github.com/fastapiadmin/FastapiAdmin.git
synced 2026-09-20 20:39:55 +00:00
refactor(module): 重构模块结构和代码生成模板
- 删除废弃的ticket和version模块相关代码 - 将resource模块从system迁移到monitor - 移除前端资源管理相关配置 - 重构代码生成模板路径和配置 - 修复CRUD基类初始化参数问题 - 优化模板工具类路径处理 - 更新基础模型字段和配置
This commit is contained in:
@@ -1177,162 +1177,6 @@
|
||||
"description": "初始化数据"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "版本管理",
|
||||
"type": 2,
|
||||
"icon": "el-icon-Guide",
|
||||
"order": 10,
|
||||
"permission": "system:version:query",
|
||||
"route_name": "Version",
|
||||
"route_path": "/system/version",
|
||||
"component_path": "system/version/index",
|
||||
"status": true,
|
||||
"keep_alive": true,
|
||||
"hidden": false,
|
||||
"always_show": false,
|
||||
"title": "版本管理",
|
||||
"params": null,
|
||||
"affix": false,
|
||||
"redirect": null,
|
||||
"description": "初始化数据",
|
||||
"children": [
|
||||
{
|
||||
"name": "创建版本",
|
||||
"type": 3,
|
||||
"icon": null,
|
||||
"order": 1,
|
||||
"permission": "system:version:create",
|
||||
"route_name": null,
|
||||
"route_path": null,
|
||||
"component_path": null,
|
||||
"status": true,
|
||||
"keep_alive": true,
|
||||
"hidden": false,
|
||||
"always_show": false,
|
||||
"title": "创建版本",
|
||||
"params": null,
|
||||
"affix": false,
|
||||
"redirect": null,
|
||||
"description": "初始化数据"
|
||||
},
|
||||
{
|
||||
"name": "修改版本",
|
||||
"type": 3,
|
||||
"icon": null,
|
||||
"order": 2,
|
||||
"permission": "system:version:update",
|
||||
"route_name": null,
|
||||
"route_path": null,
|
||||
"component_path": null,
|
||||
"status": true,
|
||||
"keep_alive": true,
|
||||
"hidden": false,
|
||||
"always_show": false,
|
||||
"title": "修改版本",
|
||||
"params": null,
|
||||
"affix": false,
|
||||
"redirect": null,
|
||||
"description": "初始化数据"
|
||||
},
|
||||
{
|
||||
"name": "删除版本",
|
||||
"type": 3,
|
||||
"icon": null,
|
||||
"order": 3,
|
||||
"permission": "system:version:delete",
|
||||
"route_name": null,
|
||||
"route_path": null,
|
||||
"component_path": null,
|
||||
"status": true,
|
||||
"keep_alive": true,
|
||||
"hidden": false,
|
||||
"always_show": false,
|
||||
"title": "删除版本",
|
||||
"params": null,
|
||||
"affix": false,
|
||||
"redirect": null,
|
||||
"description": "初始化数据"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "工单管理",
|
||||
"type": 2,
|
||||
"icon": "el-icon-Help",
|
||||
"order": 11,
|
||||
"permission": "system:ticket:query",
|
||||
"route_name": "Ticket",
|
||||
"route_path": "/system/ticket",
|
||||
"component_path": "system/ticket/index",
|
||||
"status": true,
|
||||
"keep_alive": true,
|
||||
"hidden": false,
|
||||
"always_show": false,
|
||||
"title": "工单管理",
|
||||
"params": null,
|
||||
"affix": false,
|
||||
"redirect": null,
|
||||
"description": "初始化数据",
|
||||
"children": [
|
||||
{
|
||||
"name": "创建工单",
|
||||
"type": 3,
|
||||
"icon": null,
|
||||
"order": 1,
|
||||
"permission": "system:ticket:create",
|
||||
"route_name": null,
|
||||
"route_path": null,
|
||||
"component_path": null,
|
||||
"status": true,
|
||||
"keep_alive": true,
|
||||
"hidden": false,
|
||||
"always_show": false,
|
||||
"title": "创建工单",
|
||||
"params": null,
|
||||
"affix": false,
|
||||
"redirect": null,
|
||||
"description": "初始化数据"
|
||||
},
|
||||
{
|
||||
"name": "修改工单",
|
||||
"type": 3,
|
||||
"icon": null,
|
||||
"order": 2,
|
||||
"permission": "system:ticket:update",
|
||||
"route_name": null,
|
||||
"route_path": null,
|
||||
"component_path": null,
|
||||
"status": true,
|
||||
"keep_alive": true,
|
||||
"hidden": false,
|
||||
"always_show": false,
|
||||
"title": "修改工单",
|
||||
"params": null,
|
||||
"affix": false,
|
||||
"redirect": null,
|
||||
"description": "初始化数据"
|
||||
},
|
||||
{
|
||||
"name": "删除工单",
|
||||
"type": 3,
|
||||
"icon": null,
|
||||
"order": 3,
|
||||
"permission": "system:ticket:delete",
|
||||
"route_name": null,
|
||||
"route_path": null,
|
||||
"component_path": null,
|
||||
"status": true,
|
||||
"keep_alive": true,
|
||||
"hidden": false,
|
||||
"always_show": false,
|
||||
"title": "删除工单",
|
||||
"params": null,
|
||||
"affix": false,
|
||||
"redirect": null,
|
||||
"description": "初始化数据"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -1550,6 +1394,217 @@
|
||||
"description": "初始化数据"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "文件管理",
|
||||
"type": 2,
|
||||
"icon": "el-icon-Files",
|
||||
"order": 1,
|
||||
"permission": "monitor:resource:query",
|
||||
"route_name": "Resource",
|
||||
"route_path": "/monitor/resource",
|
||||
"component_path": "monitor/resource/index",
|
||||
"status": true,
|
||||
"keep_alive": true,
|
||||
"hidden": false,
|
||||
"always_show": false,
|
||||
"title": "文件管理",
|
||||
"params": null,
|
||||
"affix": false,
|
||||
"redirect": null,
|
||||
"description": "初始化数据",
|
||||
"children": [
|
||||
{
|
||||
"name": "文件上传",
|
||||
"type": 3,
|
||||
"icon": null,
|
||||
"order": 1,
|
||||
"permission": "monitor:resource:upload",
|
||||
"route_name": null,
|
||||
"route_path": null,
|
||||
"component_path": null,
|
||||
"status": true,
|
||||
"keep_alive": true,
|
||||
"hidden": false,
|
||||
"always_show": false,
|
||||
"title": "文件上传",
|
||||
"params": null,
|
||||
"affix": false,
|
||||
"redirect": null,
|
||||
"description": "初始化数据"
|
||||
},
|
||||
{
|
||||
"name": "文件下载",
|
||||
"type": 3,
|
||||
"icon": null,
|
||||
"order": 2,
|
||||
"permission": "monitor:resource:download",
|
||||
"route_name": null,
|
||||
"route_path": null,
|
||||
"component_path": null,
|
||||
"status": true,
|
||||
"keep_alive": true,
|
||||
"hidden": false,
|
||||
"always_show": false,
|
||||
"title": "文件下载",
|
||||
"params": null,
|
||||
"affix": false,
|
||||
"redirect": null,
|
||||
"description": "初始化数据"
|
||||
},
|
||||
{
|
||||
"name": "文件删除",
|
||||
"type": 3,
|
||||
"icon": null,
|
||||
"order": 3,
|
||||
"permission": "monitor:resource:delete",
|
||||
"route_name": null,
|
||||
"route_path": null,
|
||||
"component_path": null,
|
||||
"status": true,
|
||||
"keep_alive": true,
|
||||
"hidden": false,
|
||||
"always_show": false,
|
||||
"title": "文件删除",
|
||||
"params": null,
|
||||
"affix": false,
|
||||
"redirect": null,
|
||||
"description": "初始化数据"
|
||||
},
|
||||
{
|
||||
"name": "文件移动",
|
||||
"type": 3,
|
||||
"icon": null,
|
||||
"order": 4,
|
||||
"permission": "monitor:resource:move",
|
||||
"route_name": null,
|
||||
"route_path": null,
|
||||
"component_path": null,
|
||||
"status": true,
|
||||
"keep_alive": true,
|
||||
"hidden": false,
|
||||
"always_show": false,
|
||||
"title": "文件移动",
|
||||
"params": null,
|
||||
"affix": false,
|
||||
"redirect": null,
|
||||
"description": "初始化数据"
|
||||
},
|
||||
{
|
||||
"name": "文件复制",
|
||||
"type": 3,
|
||||
"icon": null,
|
||||
"order": 5,
|
||||
"permission": "rmonitor:resource:copy",
|
||||
"route_name": null,
|
||||
"route_path": null,
|
||||
"component_path": null,
|
||||
"status": true,
|
||||
"keep_alive": true,
|
||||
"hidden": false,
|
||||
"always_show": false,
|
||||
"title": "文件复制",
|
||||
"params": null,
|
||||
"affix": false,
|
||||
"redirect": null,
|
||||
"description": "初始化数据"
|
||||
},
|
||||
{
|
||||
"name": "文件重命名",
|
||||
"type": 3,
|
||||
"icon": null,
|
||||
"order": 6,
|
||||
"permission": "monitor:resource:rename",
|
||||
"route_name": null,
|
||||
"route_path": null,
|
||||
"component_path": null,
|
||||
"status": true,
|
||||
"keep_alive": true,
|
||||
"hidden": false,
|
||||
"always_show": false,
|
||||
"title": "文件重命名",
|
||||
"params": null,
|
||||
"affix": false,
|
||||
"redirect": null,
|
||||
"description": "初始化数据"
|
||||
},
|
||||
{
|
||||
"name": "创建目录",
|
||||
"type": 3,
|
||||
"icon": null,
|
||||
"order": 7,
|
||||
"permission": "monitor:resource:create_dir",
|
||||
"route_name": null,
|
||||
"route_path": null,
|
||||
"component_path": null,
|
||||
"status": true,
|
||||
"keep_alive": true,
|
||||
"hidden": false,
|
||||
"always_show": false,
|
||||
"title": "创建目录",
|
||||
"params": null,
|
||||
"affix": false,
|
||||
"redirect": null,
|
||||
"description": "初始化数据"
|
||||
},
|
||||
{
|
||||
"name": "文件搜索",
|
||||
"type": 3,
|
||||
"icon": null,
|
||||
"order": 8,
|
||||
"permission": "monitor:resource:search",
|
||||
"route_name": null,
|
||||
"route_path": null,
|
||||
"component_path": null,
|
||||
"status": true,
|
||||
"keep_alive": true,
|
||||
"hidden": false,
|
||||
"always_show": false,
|
||||
"title": "文件搜索",
|
||||
"params": null,
|
||||
"affix": false,
|
||||
"redirect": null,
|
||||
"description": "初始化数据"
|
||||
},
|
||||
{
|
||||
"name": "导出文件列表",
|
||||
"type": 3,
|
||||
"icon": null,
|
||||
"order": 9,
|
||||
"permission": "rmonitor:resource:export",
|
||||
"route_name": null,
|
||||
"route_path": null,
|
||||
"component_path": null,
|
||||
"status": true,
|
||||
"keep_alive": true,
|
||||
"hidden": false,
|
||||
"always_show": false,
|
||||
"title": "导出文件列表",
|
||||
"params": null,
|
||||
"affix": false,
|
||||
"redirect": null,
|
||||
"description": "初始化数据"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "存储监控",
|
||||
"type": 2,
|
||||
"icon": "el-icon-PieChart",
|
||||
"order": 2,
|
||||
"permission": "monitor:stats:query",
|
||||
"route_name": "Stats",
|
||||
"route_path": "/monitor/stats",
|
||||
"component_path": "monitor/stats/index",
|
||||
"status": true,
|
||||
"keep_alive": true,
|
||||
"hidden": false,
|
||||
"always_show": false,
|
||||
"title": "存储监控",
|
||||
"params": null,
|
||||
"affix": false,
|
||||
"redirect": null,
|
||||
"description": "初始化数据"
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -1905,238 +1960,6 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "存储管理",
|
||||
"type": 1,
|
||||
"icon": "el-icon-Coin",
|
||||
"order": 7,
|
||||
"permission": null,
|
||||
"route_name": "Resource",
|
||||
"route_path": "/resource",
|
||||
"component_path": null,
|
||||
"status": true,
|
||||
"keep_alive": false,
|
||||
"hidden": false,
|
||||
"always_show": false,
|
||||
"title": "存储管理",
|
||||
"params": null,
|
||||
"affix": false,
|
||||
"redirect": "/resource/file",
|
||||
"description": "初始化数据",
|
||||
"children": [
|
||||
{
|
||||
"name": "文件管理",
|
||||
"type": 2,
|
||||
"icon": "el-icon-Files",
|
||||
"order": 1,
|
||||
"permission": "resource:file:query",
|
||||
"route_name": "ResourceFile",
|
||||
"route_path": "/resource/file",
|
||||
"component_path": "resource/file/index",
|
||||
"status": true,
|
||||
"keep_alive": true,
|
||||
"hidden": false,
|
||||
"always_show": false,
|
||||
"title": "文件管理",
|
||||
"params": null,
|
||||
"affix": false,
|
||||
"redirect": null,
|
||||
"description": "初始化数据",
|
||||
"children": [
|
||||
{
|
||||
"name": "文件上传",
|
||||
"type": 3,
|
||||
"icon": null,
|
||||
"order": 1,
|
||||
"permission": "resource:file:upload",
|
||||
"route_name": null,
|
||||
"route_path": null,
|
||||
"component_path": null,
|
||||
"status": true,
|
||||
"keep_alive": true,
|
||||
"hidden": false,
|
||||
"always_show": false,
|
||||
"title": "文件上传",
|
||||
"params": null,
|
||||
"affix": false,
|
||||
"redirect": null,
|
||||
"description": "初始化数据"
|
||||
},
|
||||
{
|
||||
"name": "文件下载",
|
||||
"type": 3,
|
||||
"icon": null,
|
||||
"order": 2,
|
||||
"permission": "resource:file:download",
|
||||
"route_name": null,
|
||||
"route_path": null,
|
||||
"component_path": null,
|
||||
"status": true,
|
||||
"keep_alive": true,
|
||||
"hidden": false,
|
||||
"always_show": false,
|
||||
"title": "文件下载",
|
||||
"params": null,
|
||||
"affix": false,
|
||||
"redirect": null,
|
||||
"description": "初始化数据"
|
||||
},
|
||||
{
|
||||
"name": "文件删除",
|
||||
"type": 3,
|
||||
"icon": null,
|
||||
"order": 3,
|
||||
"permission": "resource:file:delete",
|
||||
"route_name": null,
|
||||
"route_path": null,
|
||||
"component_path": null,
|
||||
"status": true,
|
||||
"keep_alive": true,
|
||||
"hidden": false,
|
||||
"always_show": false,
|
||||
"title": "文件删除",
|
||||
"params": null,
|
||||
"affix": false,
|
||||
"redirect": null,
|
||||
"description": "初始化数据"
|
||||
},
|
||||
{
|
||||
"name": "文件移动",
|
||||
"type": 3,
|
||||
"icon": null,
|
||||
"order": 4,
|
||||
"permission": "resource:file:move",
|
||||
"route_name": null,
|
||||
"route_path": null,
|
||||
"component_path": null,
|
||||
"status": true,
|
||||
"keep_alive": true,
|
||||
"hidden": false,
|
||||
"always_show": false,
|
||||
"title": "文件移动",
|
||||
"params": null,
|
||||
"affix": false,
|
||||
"redirect": null,
|
||||
"description": "初始化数据"
|
||||
},
|
||||
{
|
||||
"name": "文件复制",
|
||||
"type": 3,
|
||||
"icon": null,
|
||||
"order": 5,
|
||||
"permission": "resource:file:copy",
|
||||
"route_name": null,
|
||||
"route_path": null,
|
||||
"component_path": null,
|
||||
"status": true,
|
||||
"keep_alive": true,
|
||||
"hidden": false,
|
||||
"always_show": false,
|
||||
"title": "文件复制",
|
||||
"params": null,
|
||||
"affix": false,
|
||||
"redirect": null,
|
||||
"description": "初始化数据"
|
||||
},
|
||||
{
|
||||
"name": "文件重命名",
|
||||
"type": 3,
|
||||
"icon": null,
|
||||
"order": 6,
|
||||
"permission": "resource:file:rename",
|
||||
"route_name": null,
|
||||
"route_path": null,
|
||||
"component_path": null,
|
||||
"status": true,
|
||||
"keep_alive": true,
|
||||
"hidden": false,
|
||||
"always_show": false,
|
||||
"title": "文件重命名",
|
||||
"params": null,
|
||||
"affix": false,
|
||||
"redirect": null,
|
||||
"description": "初始化数据"
|
||||
},
|
||||
{
|
||||
"name": "创建目录",
|
||||
"type": 3,
|
||||
"icon": null,
|
||||
"order": 7,
|
||||
"permission": "resource:file:create_dir",
|
||||
"route_name": null,
|
||||
"route_path": null,
|
||||
"component_path": null,
|
||||
"status": true,
|
||||
"keep_alive": true,
|
||||
"hidden": false,
|
||||
"always_show": false,
|
||||
"title": "创建目录",
|
||||
"params": null,
|
||||
"affix": false,
|
||||
"redirect": null,
|
||||
"description": "初始化数据"
|
||||
},
|
||||
{
|
||||
"name": "文件搜索",
|
||||
"type": 3,
|
||||
"icon": null,
|
||||
"order": 8,
|
||||
"permission": "resource:file:search",
|
||||
"route_name": null,
|
||||
"route_path": null,
|
||||
"component_path": null,
|
||||
"status": true,
|
||||
"keep_alive": true,
|
||||
"hidden": false,
|
||||
"always_show": false,
|
||||
"title": "文件搜索",
|
||||
"params": null,
|
||||
"affix": false,
|
||||
"redirect": null,
|
||||
"description": "初始化数据"
|
||||
},
|
||||
{
|
||||
"name": "导出文件列表",
|
||||
"type": 3,
|
||||
"icon": null,
|
||||
"order": 9,
|
||||
"permission": "resource:file:export",
|
||||
"route_name": null,
|
||||
"route_path": null,
|
||||
"component_path": null,
|
||||
"status": true,
|
||||
"keep_alive": true,
|
||||
"hidden": false,
|
||||
"always_show": false,
|
||||
"title": "导出文件列表",
|
||||
"params": null,
|
||||
"affix": false,
|
||||
"redirect": null,
|
||||
"description": "初始化数据"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "存储监控",
|
||||
"type": 2,
|
||||
"icon": "el-icon-PieChart",
|
||||
"order": 2,
|
||||
"permission": "resource:stats:query",
|
||||
"route_name": "Stats",
|
||||
"route_path": "/resource/stats",
|
||||
"component_path": "resource/stats/index",
|
||||
"status": true,
|
||||
"keep_alive": true,
|
||||
"hidden": false,
|
||||
"always_show": false,
|
||||
"title": "存储监控",
|
||||
"params": null,
|
||||
"affix": false,
|
||||
"redirect": null,
|
||||
"description": "初始化数据"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "AI大模型",
|
||||
"type": 1,
|
||||
|
||||
@@ -434,41 +434,5 @@
|
||||
{
|
||||
"role_id": 1,
|
||||
"menu_id": 109
|
||||
},
|
||||
{
|
||||
"role_id": 1,
|
||||
"menu_id": 110
|
||||
},
|
||||
{
|
||||
"role_id": 1,
|
||||
"menu_id": 111
|
||||
},
|
||||
{
|
||||
"role_id": 1,
|
||||
"menu_id": 112
|
||||
},
|
||||
{
|
||||
"role_id": 1,
|
||||
"menu_id": 113
|
||||
},
|
||||
{
|
||||
"role_id": 1,
|
||||
"menu_id": 114
|
||||
},
|
||||
{
|
||||
"role_id": 1,
|
||||
"menu_id": 115
|
||||
},
|
||||
{
|
||||
"role_id": 1,
|
||||
"menu_id": 116
|
||||
},
|
||||
{
|
||||
"role_id": 1,
|
||||
"menu_id": 117
|
||||
},
|
||||
{
|
||||
"role_id": 1,
|
||||
"menu_id": 118
|
||||
}
|
||||
]
|
||||
Reference in New Issue
Block a user