mirror of
https://github.com/fastapiadmin/FastapiAdmin.git
synced 2026-09-20 20:39:55 +00:00
fix(gencode): 修复表导入参数格式问题并优化UI样式
修复前端传递表名参数格式与后端API不匹配的问题,调整参数为逗号分隔字符串 优化操作按钮颜色区分不同功能,修正预览对话框变量命名和模板文件后缀 重构文件上传接口模拟实现,移除未使用的导入
This commit is contained in:
@@ -47,7 +47,7 @@ async def get_gen_db_table_list_controller(
|
||||
|
||||
@GenRouter.post("/import", summary="导入表结构", description="导入表结构")
|
||||
async def import_gen_table_controller(
|
||||
table_names: List[str] = Query(..., description="表名列表", embed=True),
|
||||
table_names: List[str] = Query(..., description="表名列表"),
|
||||
auth: AuthSchema = Depends(AuthPermission(["generator:gencode:import"])),
|
||||
) -> JSONResponse:
|
||||
add_gen_table_list = await GenTableService.get_gen_db_table_list_by_name_service(auth, table_names)
|
||||
|
||||
Reference in New Issue
Block a user