mirror of
https://github.com/continew-org/continew-admin.git
synced 2025-09-09 20:57:21 +08:00
refactor: 适配 3.0 前端代码生成模板,代码预览及生成
This commit is contained in:
@@ -43,6 +43,7 @@
|
||||
<artifactId>continew-admin-generator</artifactId>
|
||||
</dependency>
|
||||
|
||||
<!-- 系统管理模块(存放系统管理模块相关功能,例如:部门管理、角色管理、用户管理等) -->
|
||||
<dependency>
|
||||
<groupId>top.charles7c.continew</groupId>
|
||||
<artifactId>continew-admin-system</artifactId>
|
||||
|
@@ -42,7 +42,7 @@ generator:
|
||||
templateConfigs:
|
||||
DO:
|
||||
# 模板路径
|
||||
templatePath: Entity.ftl
|
||||
templatePath: backend/Entity.ftl
|
||||
# 包名称
|
||||
packageName: model.entity
|
||||
# 排除字段
|
||||
@@ -53,20 +53,20 @@ generator:
|
||||
- updateUser
|
||||
- updateTime
|
||||
Query:
|
||||
templatePath: Query.ftl
|
||||
templatePath: backend/Query.ftl
|
||||
packageName: model.query
|
||||
Req:
|
||||
templatePath: Req.ftl
|
||||
templatePath: backend/Req.ftl
|
||||
packageName: model.req
|
||||
Resp:
|
||||
templatePath: Resp.ftl
|
||||
templatePath: backend/Resp.ftl
|
||||
packageName: model.resp
|
||||
excludeFields:
|
||||
- id
|
||||
- createUser
|
||||
- createTime
|
||||
DetailResp:
|
||||
templatePath: DetailResp.ftl
|
||||
templatePath: backend/DetailResp.ftl
|
||||
packageName: model.resp
|
||||
excludeFields:
|
||||
- id
|
||||
@@ -75,14 +75,34 @@ generator:
|
||||
- updateUser
|
||||
- updateTime
|
||||
Mapper:
|
||||
templatePath: Mapper.ftl
|
||||
templatePath: backend/Mapper.ftl
|
||||
packageName: mapper
|
||||
Service:
|
||||
templatePath: Service.ftl
|
||||
templatePath: backend/Service.ftl
|
||||
packageName: service
|
||||
ServiceImpl:
|
||||
templatePath: ServiceImpl.ftl
|
||||
templatePath: backend/ServiceImpl.ftl
|
||||
packageName: service.impl
|
||||
Controller:
|
||||
templatePath: Controller.ftl
|
||||
packageName: controller
|
||||
templatePath: backend/Controller.ftl
|
||||
packageName: controller
|
||||
api:
|
||||
templatePath: frontend/api.ftl
|
||||
packageName: src/apis
|
||||
extension: .ts
|
||||
backend: false
|
||||
index:
|
||||
templatePath: frontend/index.ftl
|
||||
packageName: src/views
|
||||
extension: .vue
|
||||
backend: false
|
||||
AddModal:
|
||||
templatePath: frontend/AddModal.ftl
|
||||
packageName: src/views
|
||||
extension: .vue
|
||||
backend: false
|
||||
DetailDrawer:
|
||||
templatePath: frontend/DetailDrawer.ftl
|
||||
packageName: src/views
|
||||
extension: .vue
|
||||
backend: false
|
Reference in New Issue
Block a user