fix(gencode): 修复表导入参数格式问题并优化UI样式

修复前端传递表名参数格式与后端API不匹配的问题,调整参数为逗号分隔字符串
优化操作按钮颜色区分不同功能,修正预览对话框变量命名和模板文件后缀
重构文件上传接口模拟实现,移除未使用的导入
This commit is contained in:
zhangtao
2025-10-09 00:36:49 +08:00
parent 97e6382710
commit 1ee6278107
6 changed files with 51 additions and 32 deletions
@@ -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)