mirror of
https://github.com/fastapiadmin/FastapiAdmin.git
synced 2026-09-22 05:02:57 +00:00
refactor(common): 替换分页服务方法及代码生成模块重构
- 将分页服务中方法名由get_page_obj统一替换为paginate - 注意相关controller均调整调用方式,保证统一接口调用 - 代码生成模块数据库模型统一替换为GenTableModel和GenTableColumnModel - 更改数据库类型及分页相关配置为settings.DATABASE_TYPE统一管理 - 重构代码生成模块查询参数,新增GenTableQueryParam和GenTableColumnQueryParam类支持更灵活查询 - 数据模型中Pydantic Schema类型统一调整为Schema后缀 - 优化异常处理,增加请求参数验证错误的友好提示映射 - 调整中间件及依赖以支持更严格的类型检查及更健壮的用户权限认证逻辑 - 微调日志打印格式,改进请求日志信息输出风格
This commit is contained in:
@@ -2256,5 +2256,45 @@
|
||||
"description": "前端构建"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "流程管理",
|
||||
"type": 1,
|
||||
"icon": "el-icon-ShoppingBag",
|
||||
"order": 10,
|
||||
"permission": null,
|
||||
"route_name": "Workflow",
|
||||
"route_path": "/workflow",
|
||||
"component_path": null,
|
||||
"status": true,
|
||||
"keep_alive": false,
|
||||
"hidden": false,
|
||||
"always_show": false,
|
||||
"title": "流程管理",
|
||||
"params": null,
|
||||
"affix": false,
|
||||
"redirect": "/workflow/operator",
|
||||
"description": "流程管理",
|
||||
"children": [
|
||||
{
|
||||
"name": "我的流程",
|
||||
"type": 2,
|
||||
"icon": "el-icon-ShoppingBag",
|
||||
"order": 1,
|
||||
"permission": "workflow:operator:query",
|
||||
"route_name": "Operator",
|
||||
"route_path": "/workflow/operator",
|
||||
"component_path": "workflow/operator/index",
|
||||
"status": true,
|
||||
"keep_alive": true,
|
||||
"hidden": false,
|
||||
"always_show": false,
|
||||
"title": "我的流程",
|
||||
"params": null,
|
||||
"affix": false,
|
||||
"redirect": null,
|
||||
"description": "我的流程"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
@@ -430,5 +430,45 @@
|
||||
{
|
||||
"role_id": 1,
|
||||
"menu_id": 108
|
||||
},
|
||||
{
|
||||
"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