feat: remove code generator module (controller/service/mapper/btl templates/menu data)

This commit is contained in:
张家训
2026-08-21 14:25:24 +08:00
parent 345f4964b2
commit 1e3f062cd6
18 changed files with 4 additions and 1485 deletions
+2 -21
View File
@@ -1,6 +1,6 @@
# Freedom Admin
基于 **Spring Boot 2.7.10** 的后台管理系统后端服务,提供用户、角色、部门、权限等基础管理能力,并内置基于 Beetl 模板引擎的代码生成器。
基于 **Spring Boot 2.7.10** 的后台管理系统后端服务,提供用户、角色、部门、权限等基础管理能力。
## 技术栈
@@ -9,7 +9,7 @@
| 核心框架 | Spring Boot 2.7.10 |
| 安全框架 | Spring Security 3.3.2 + JWT(jjwt 0.9.1) |
| ORM | MyBatis-Plus 3.5.7 + PageHelper 2.1.0 |
| 模板引擎 | Thymeleaf(登录页等)、Beetl 3.16.2(代码生成) |
| 模板引擎 | Thymeleaf(登录页等) |
| 数据库 | MySQL 8.0(utf8mb4) |
| 连接池 | HikariCP |
| 其他 | Lombok、Fastjson、Guava、Spring Mail |
@@ -32,7 +32,6 @@ freedom-admin
│ └── util/ # 工具类
└── src/main/resources/
├── mapper/ # MyBatis XML 映射文件
├── btl/ # 代码生成 Beetl 模板
├── logback-spring.xml # 日志配置(控制台 UTF-8)
└── application.yml # 应用配置
```
@@ -54,7 +53,6 @@ freedom-admin
- **角色管理**:角色 CRUD、角色-权限绑定
- **部门管理**:树形部门结构
- **权限管理**:菜单 / 权限点维护,驱动前端动态路由
- **代码生成器**:读取数据库表结构,一键生成 Controller / Service / Mapper / Entity / Vue 等全套代码
- **邮件服务**:基于 Spring Mail 的邮件发送能力
- **系统特性**:统一异常处理、PageHelper 分页、逻辑删除、接口权限控制
@@ -101,23 +99,6 @@ java -jar target/freedom-admin-1.0.1.jar
启动后服务地址:`http://localhost:8800`
## 代码生成器 API
| 接口 | 方法 | 说明 |
| ---- | ---- | ---- |
| `/generator/findListWithPage` | GET | 分页查询数据库表列表 |
| `/generator/getTableSelectList` | GET | 获取表下拉列表 |
| `/generator/execute` | POST | 执行代码生成 |
生成参数示例:
```
POST /generator/execute
Content-Type: application/x-www-form-urlencoded
tableName=your_table_name&ruleStr=[{"rule":"value"}]
```
## 注意事项
- JWT 密钥与过期时间在 `application.yml` 的 `jwt` 节点配置,生产环境请务必更换密钥。