mirror of
https://github.com/fastapiadmin/FastapiAdmin.git
synced 2026-09-20 20:39:55 +00:00
feat(module_gencode): 新增代码生成模块并重构示例模块
重构示例模块为代码生成模块,包括新增模型、服务、控制器等核心组件 更新数据库配置从MySQL切换为PostgreSQL并调整相关参数 优化代码生成模板逻辑,移除无用字段和功能 添加PostgreSQL菜单SQL生成测试用例 更新前端API路径和菜单配置 移除旧的示例模块相关代码
This commit is contained in:
@@ -1734,8 +1734,8 @@
|
||||
"icon": "code",
|
||||
"order": 5,
|
||||
"permission": null,
|
||||
"route_name": "Gencode",
|
||||
"route_path": "/gencode",
|
||||
"route_name": "Generator",
|
||||
"route_path": "/generator",
|
||||
"component_path": null,
|
||||
"status": "0",
|
||||
"keep_alive": false,
|
||||
@@ -1744,7 +1744,7 @@
|
||||
"title": "代码管理",
|
||||
"params": null,
|
||||
"affix": false,
|
||||
"redirect": "/gencode/backcode",
|
||||
"redirect": "/generator/gencode",
|
||||
"description": "代码管理",
|
||||
"children": [
|
||||
{
|
||||
@@ -1753,9 +1753,9 @@
|
||||
"icon": "code",
|
||||
"order": 1,
|
||||
"permission": "module_generator:gencode:query",
|
||||
"route_name": "Backcode",
|
||||
"route_path": "/gencode/backcode",
|
||||
"component_path": "module_generator/backcode/index",
|
||||
"route_name": "GenCode",
|
||||
"route_path": "/generator/gencode",
|
||||
"component_path": "module_generator/gencode/index",
|
||||
"status": "0",
|
||||
"keep_alive": true,
|
||||
"hidden": false,
|
||||
@@ -2001,33 +2001,33 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "案例管理",
|
||||
"name": "模块管理",
|
||||
"type": 1,
|
||||
"icon": "el-icon-ElementPlus",
|
||||
"icon": "menu",
|
||||
"order": 7,
|
||||
"permission": null,
|
||||
"route_name": "Example",
|
||||
"route_path": "/example",
|
||||
"route_name": "Gencode",
|
||||
"route_path": "/gencode",
|
||||
"component_path": null,
|
||||
"status": "0",
|
||||
"keep_alive": false,
|
||||
"hidden": false,
|
||||
"always_show": false,
|
||||
"title": "案例管理",
|
||||
"title": "模块管理",
|
||||
"params": null,
|
||||
"affix": false,
|
||||
"redirect": "/example/demo",
|
||||
"description": "案例管理",
|
||||
"redirect": "/gencode/demo",
|
||||
"description": "模块管理",
|
||||
"children": [
|
||||
{
|
||||
"name": "示例管理",
|
||||
"type": 2,
|
||||
"icon": "el-icon-ElementPlus",
|
||||
"icon": "menu",
|
||||
"order": 1,
|
||||
"permission": "module_example:demo:query",
|
||||
"permission": "module_gencode:demo:query",
|
||||
"route_name": "Demo",
|
||||
"route_path": "/example/demo",
|
||||
"component_path": "module_example/demo/index",
|
||||
"route_path": "/gencode/demo",
|
||||
"component_path": "module_gencode/demo/index",
|
||||
"status": "0",
|
||||
"keep_alive": true,
|
||||
"hidden": false,
|
||||
@@ -2043,7 +2043,7 @@
|
||||
"type": 3,
|
||||
"icon": null,
|
||||
"order": 1,
|
||||
"permission": "module_example:demo:create",
|
||||
"permission": "module_gencode:demo:create",
|
||||
"route_name": null,
|
||||
"route_path": null,
|
||||
"component_path": null,
|
||||
@@ -2062,7 +2062,7 @@
|
||||
"type": 3,
|
||||
"icon": null,
|
||||
"order": 2,
|
||||
"permission": "module_example:demo:update",
|
||||
"permission": "module_gencode:demo:update",
|
||||
"route_name": null,
|
||||
"route_path": null,
|
||||
"component_path": null,
|
||||
@@ -2081,7 +2081,7 @@
|
||||
"type": 3,
|
||||
"icon": null,
|
||||
"order": 3,
|
||||
"permission": "module_example:demo:delete",
|
||||
"permission": "module_gencode:demo:delete",
|
||||
"route_name": null,
|
||||
"route_path": null,
|
||||
"component_path": null,
|
||||
@@ -2100,7 +2100,7 @@
|
||||
"type": 3,
|
||||
"icon": null,
|
||||
"order": 4,
|
||||
"permission": "module_example:demo:patch",
|
||||
"permission": "module_gencode:demo:patch",
|
||||
"route_name": null,
|
||||
"route_path": null,
|
||||
"component_path": null,
|
||||
@@ -2119,7 +2119,7 @@
|
||||
"type": 3,
|
||||
"icon": null,
|
||||
"order": 5,
|
||||
"permission": "module_example:demo:export",
|
||||
"permission": "module_gencode:demo:export",
|
||||
"route_name": null,
|
||||
"route_path": null,
|
||||
"component_path": null,
|
||||
@@ -2138,7 +2138,7 @@
|
||||
"type": 3,
|
||||
"icon": null,
|
||||
"order": 6,
|
||||
"permission": "module_example:demo:import",
|
||||
"permission": "module_gencode:demo:import",
|
||||
"route_name": null,
|
||||
"route_path": null,
|
||||
"component_path": null,
|
||||
@@ -2157,7 +2157,7 @@
|
||||
"type": 3,
|
||||
"icon": null,
|
||||
"order": 7,
|
||||
"permission": "module_example:demo:download",
|
||||
"permission": "module_gencode:demo:download",
|
||||
"route_name": null,
|
||||
"route_path": null,
|
||||
"component_path": null,
|
||||
|
||||
Reference in New Issue
Block a user