refactor(代码生成): 移除驼峰命名转换并优化模板变量命名

重构代码生成模块,移除不必要的驼峰命名转换逻辑,统一使用下划线命名风格
优化模板上下文变量命名,使其更加清晰和一致
修复SQL查询参数处理和表创建逻辑
简化模型转换逻辑,直接使用Pydantic的model_validate方法
更新.gitignore文件,添加前端环境变量配置
This commit is contained in:
zhangtao
2025-10-17 02:17:56 +08:00
parent 2186566a0e
commit 0ea88c3320
14 changed files with 551 additions and 613 deletions
+1 -1
View File
@@ -26,7 +26,7 @@ values('{{function_name}}导入', @parentId, '6', '#', '', 1, 0, 'F', '0', '0',
{% for column in columns %}
{% set pythonField = column.python_field | snake_to_camel %}
{% set pythonField = column.python_field %}
{% set column_comment = column.column_comment if column.column_comment else '' %}
{% set parentheseIndex = column_comment.find("") %}
{% set comment = column_comment[:parentheseIndex] if parentheseIndex != -1 else column_comment %}