Go to file
bunny 229cce3c31 保存master-v0.0.5 2025-07-02 21:23:40 +08:00
generator-code-server 保存master-v0.0.5 2025-07-02 21:23:40 +08:00
generator-code-web 保存master-v0.0.5 2025-07-02 21:23:40 +08:00
images 保存master-v0.0.5 2025-07-02 21:23:40 +08:00
.gitignore 保存master-v0.0.5 2025-07-02 21:23:40 +08:00
LICENSE 🎉 init 2025-06-28 22:10:25 +08:00
README.md 保存master-v0.0.5 2025-07-02 21:23:40 +08:00
push.sh 🎉 init 2025-06-28 22:10:25 +08:00

README.md

代码生成器

功能展示

点击 表名注释内容 跳转到另一个页面

image-20250419132154669

image-20250422202525702

image-20250422202618670

内置字段

// vm 不能直接写 `{` 需要转换下
context.put("leftBrace", "{");

// 当前的表名
context.put("tableName", tableMetaData.getTableName());

// 当前表的列信息
context.put("columnInfoList", columnInfoList);

// 数据库sql列
context.put("baseColumnList", String.join(",", list));

// 当前日期
String date = new SimpleDateFormat(dto.getSimpleDateFormat()).format(new Date());
context.put("date", date);

// 作者名字
context.put("author", dto.getAuthor());

// 每个 Controller 上的请求前缀
context.put("requestMapping", dto.getRequestMapping());

// 表字段的注释内容
context.put("comment", dto.getComment());

// 设置包名称
context.put("package", dto.getPackageName());

// 将类名称转成小驼峰
String toCamelCase = TypeConvertCore.convertToCamelCase(replaceTableName);
context.put("classLowercaseName", toCamelCase);

// 将类名称转成大驼峰
String convertToCamelCase = TypeConvertCore.convertToCamelCase(replaceTableName, true);
context.put("classUppercaseName", convertToCamelCase);

wx+alipay