feat(generator): 优化模板生成逻辑并添加新功能
- 改进 index.tsx 模板,增加智能字段检测和条件性功能生成 - 修复字段注释为空时模板渲染失败的问题 - 添加自动更新 app.config.ts 页面路径的功能 - 新增 ShopArticle相关的实体、Mapper、Service 等代码 - 优化 add.tsx 和 add.config.ts模板,提高用户体验
This commit is contained in:
@@ -62,10 +62,16 @@ private static final String[] TABLE_NAMES = new String[]{
|
||||
# 运行商城模块生成器
|
||||
java com.gxwebsoft.generator.ShopGenerator
|
||||
|
||||
# 运行CMS模块生成器
|
||||
# 运行CMS模块生成器
|
||||
java com.gxwebsoft.generator.CmsGenerator
|
||||
```
|
||||
|
||||
**🎉 新功能:自动更新 app.config.ts**
|
||||
- 生成器现在会自动更新 `app.config.ts` 文件
|
||||
- 自动添加新生成页面的路径配置
|
||||
- 自动备份原文件,避免数据丢失
|
||||
- 避免重复添加已存在的页面路径
|
||||
|
||||
### 3. 检查生成结果
|
||||
生成的文件位于:
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user