代码生成器增加前端生成基础路径并简化参数调用

This commit is contained in:
thinkgem
2021-12-31 12:55:16 +08:00
parent 6de1f82511
commit 45b2c6ae95
33 changed files with 53 additions and 53 deletions

View File

@@ -3,7 +3,7 @@
No deletion without permission, or be held responsible to law. -->
<template>
<name>deploy</name>
<filePath>${module.moduleCode}/bin</filePath>
<filePath>${baseDir}/${moduleCode}/bin</filePath>
<fileName>deploy.bat</fileName>
<charset>GBK</charset>
<content><![CDATA[@echo off

View File

@@ -3,7 +3,7 @@
No deletion without permission, or be held responsible to law. -->
<template>
<name>deploy</name>
<filePath>${module.moduleCode}/bin</filePath>
<filePath>${baseDir}/${moduleCode}/bin</filePath>
<fileName>deploy.sh</fileName>
<content><![CDATA[#!/bin/sh
# /**

View File

@@ -3,7 +3,7 @@
No deletion without permission, or be held responsible to law. -->
<template>
<name>package</name>
<filePath>${module.moduleCode}/bin</filePath>
<filePath>${baseDir}/${moduleCode}/bin</filePath>
<fileName>package.bat</fileName>
<charset>GBK</charset>
<content><![CDATA[@echo off

View File

@@ -3,7 +3,7 @@
No deletion without permission, or be held responsible to law. -->
<template>
<name>package</name>
<filePath>${module.moduleCode}/bin</filePath>
<filePath>${baseDir}/${moduleCode}/bin</filePath>
<fileName>package.sh</fileName>
<content><![CDATA[#!/bin/sh
# /**

View File

@@ -3,8 +3,8 @@
No deletion without permission, or be held responsible to law. -->
<template>
<name>erm</name>
<filePath>${module.moduleCode}/db</filePath>
<fileName>${module.moduleCode}.erm</fileName>
<filePath>${baseDir}/${moduleCode}/db</filePath>
<fileName>${moduleCode}.erm</fileName>
<content><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
<diagram>
<page_setting>
@@ -48,7 +48,7 @@
<suspend_validator>false</suspend_validator>
<export_setting>
<export_ddl_setting>
<output_path>db${'\\'}${module.moduleCode}.sql</output_path>
<output_path>db${'\\'}${moduleCode}.sql</output_path>
<encoding>UTF-8</encoding>
<line_feed>CR+LF</line_feed>
<is_open_after_saved>false</is_open_after_saved>
@@ -80,7 +80,7 @@
</export_ddl_setting>
<export_excel_setting>
<category_id>null</category_id>
<output_path>db${'\\'}${module.moduleCode}.xls</output_path>
<output_path>db${'\\'}${moduleCode}.xls</output_path>
<template></template>
<template_path></template_path>
<used_default_template_lang>en</used_default_template_lang>
@@ -96,7 +96,7 @@
<is_open_after_saved>true</is_open_after_saved>
</export_html_setting>
<export_image_setting>
<output_file_path>db${'\\'}${module.moduleCode}.png</output_file_path>
<output_file_path>db${'\\'}${moduleCode}.png</output_file_path>
<category_dir_path></category_dir_path>
<with_category_image>true</with_category_image>
<is_open_after_saved>true</is_open_after_saved>

View File

@@ -3,7 +3,7 @@
No deletion without permission, or be held responsible to law. -->
<template>
<name>pom</name>
<filePath>${module.moduleCode}</filePath>
<filePath>${baseDir}/${moduleCode}</filePath>
<fileName>pom.xml</fileName>
<charset></charset>
<content><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
@@ -18,10 +18,10 @@
<relativePath>../../parent/pom.xml</relativePath>
</parent>
<artifactId>jeesite-module-${module.moduleCode}</artifactId>
<artifactId>jeesite-module-${moduleCode}</artifactId>
<packaging>jar</packaging>
<name>JeeSite Module ${module.moduleName}</name>
<name>JeeSite Module ${moduleName}</name>
<url>http://jeesite.com</url>
<inceptionYear>2013-Now</inceptionYear>

View File

@@ -3,7 +3,7 @@
No deletion without permission, or be held responsible to law. -->
<template>
<name>package</name>
<filePath>${module.moduleCode}/src/main/java/com/jeesite/modules/${module.moduleCode}</filePath>
<filePath>${baseDir}/${moduleCode}/src/main/java/com/jeesite/modules/${moduleCode}</filePath>
<fileName></fileName>
<content><![CDATA[

View File

@@ -3,12 +3,12 @@
No deletion without permission, or be held responsible to law. -->
<template>
<name>jeesite</name>
<filePath>${module.moduleCode}/src/main/resources/config</filePath>
<fileName>jeesite-${module.moduleCode}.yml</fileName>
<filePath>${baseDir}/${moduleCode}/src/main/resources/config</filePath>
<fileName>jeesite-${moduleCode}.yml</fileName>
<content><![CDATA[
# 温馨提示不建议直接修改此文件为了平台升级方便建议将需要修改的参数值复制到application.yml里进行覆盖该参数值。
#${module.moduleCode}:
#${moduleCode}:
# enabled: true
]]>

View File

@@ -3,7 +3,7 @@
No deletion without permission, or be held responsible to law. -->
<template>
<name>versions</name>
<filePath>${module.moduleCode}/src/main/resources/db/upgrade/${module.moduleCode}</filePath>
<filePath>${baseDir}/${moduleCode}/src/main/resources/db/upgrade/${moduleCode}</filePath>
<fileName>versions</fileName>
<content><![CDATA[${module.currentVersion}]]>
</content>

View File

@@ -3,7 +3,7 @@
No deletion without permission, or be held responsible to law. -->
<template>
<name>static</name>
<filePath>${module.moduleCode}/src/main/resources/static/modules/${module.moduleCode}</filePath>
<filePath>${baseDir}/${moduleCode}/src/main/resources/static/modules/${moduleCode}</filePath>
<fileName></fileName>
<content><![CDATA[

View File

@@ -3,7 +3,7 @@
No deletion without permission, or be held responsible to law. -->
<template>
<name>deploy</name>
<filePath>${module.moduleCode}/${module.moduleCode}-client/bin</filePath>
<filePath>${baseDir}/${moduleCode}/${moduleCode}-client/bin</filePath>
<fileName>deploy.bat</fileName>
<charset>GBK</charset>
<content><![CDATA[@echo off

View File

@@ -3,7 +3,7 @@
No deletion without permission, or be held responsible to law. -->
<template>
<name>deploy</name>
<filePath>${module.moduleCode}/${module.moduleCode}-client/bin</filePath>
<filePath>${baseDir}/${moduleCode}/${moduleCode}-client/bin</filePath>
<fileName>deploy.sh</fileName>
<content><![CDATA[#!/bin/sh
# /**

View File

@@ -3,7 +3,7 @@
No deletion without permission, or be held responsible to law. -->
<template>
<name>package</name>
<filePath>${module.moduleCode}/${module.moduleCode}-client/bin</filePath>
<filePath>${baseDir}/${moduleCode}/${moduleCode}-client/bin</filePath>
<fileName>package.bat</fileName>
<charset>GBK</charset>
<content><![CDATA[@echo off

View File

@@ -3,7 +3,7 @@
No deletion without permission, or be held responsible to law. -->
<template>
<name>package</name>
<filePath>${module.moduleCode}/${module.moduleCode}-client/bin</filePath>
<filePath>${baseDir}/${moduleCode}/${moduleCode}-client/bin</filePath>
<fileName>package.sh</fileName>
<content><![CDATA[#!/bin/sh
# /**

View File

@@ -3,7 +3,7 @@
No deletion without permission, or be held responsible to law. -->
<template>
<name>pom</name>
<filePath>${module.moduleCode}/${module.moduleCode}-client</filePath>
<filePath>${baseDir}/${moduleCode}/${moduleCode}-client</filePath>
<fileName>pom.xml</fileName>
<charset></charset>
<content><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
@@ -18,10 +18,10 @@
<relativePath>../../../parent/pom.xml</relativePath>
</parent>
<artifactId>jeesite-cloud-module-${module.moduleCode}-client</artifactId>
<artifactId>jeesite-cloud-module-${moduleCode}-client</artifactId>
<packaging>jar</packaging>
<name>JeeSite Cloud Module ${module.moduleName} Client</name>
<name>JeeSite Cloud Module ${moduleName} Client</name>
<url>http://jeesite.com</url>
<inceptionYear>2013-Now</inceptionYear>

View File

@@ -3,7 +3,7 @@
No deletion without permission, or be held responsible to law. -->
<template>
<name>package</name>
<filePath>${module.moduleCode}/${module.moduleCode}-client/src/main/java/com/jeesite/modules/${module.moduleCode}</filePath>
<filePath>${baseDir}/${moduleCode}/${moduleCode}-client/src/main/java/com/jeesite/modules/${moduleCode}</filePath>
<fileName></fileName>
<content><![CDATA[

View File

@@ -3,7 +3,7 @@
No deletion without permission, or be held responsible to law. -->
<template>
<name>docker-bulid</name>
<filePath>${module.moduleCode}/${module.moduleCode}/bin</filePath>
<filePath>${baseDir}/${moduleCode}/${moduleCode}/bin</filePath>
<fileName>docker-bulid.bat</fileName>
<charset>GBK</charset>
<content><![CDATA[@echo off

View File

@@ -3,7 +3,7 @@
No deletion without permission, or be held responsible to law. -->
<template>
<name>docker-bulid</name>
<filePath>${module.moduleCode}/${module.moduleCode}/bin</filePath>
<filePath>${baseDir}/${moduleCode}/${moduleCode}/bin</filePath>
<fileName>docker-bulid.sh</fileName>
<content><![CDATA[#!/bin/sh
# /**

View File

@@ -3,7 +3,7 @@
No deletion without permission, or be held responsible to law. -->
<template>
<name>Dockerfile</name>
<filePath>${module.moduleCode}/${module.moduleCode}/bin/docker</filePath>
<filePath>${baseDir}/${moduleCode}/${moduleCode}/bin/docker</filePath>
<fileName>Dockerfile</fileName>
<content><![CDATA[FROM frolvlad/alpine-java:jdk8-slim
MAINTAINER ThinkGem@163.com
@@ -28,7 +28,7 @@ ENTRYPOINT java $JAVA_OPTS -cp /app $JAVA_OPTS org.springframework.boot.loader.W
EXPOSE 8983
#docker run -p 8983:8983 com.jeesite/jeesite-cloud-module-${module.moduleCode}:4.2
#docker run -p 8983:8983 com.jeesite/jeesite-cloud-module-${moduleCode}:4.2
]]>
</content>
</template>

View File

@@ -3,7 +3,7 @@
No deletion without permission, or be held responsible to law. -->
<template>
<name>app</name>
<filePath>${module.moduleCode}/${module.moduleCode}/bin/docker</filePath>
<filePath>${baseDir}/${moduleCode}/${moduleCode}/bin/docker</filePath>
<fileName>app</fileName>
<content><![CDATA[
#======================================#

View File

@@ -3,7 +3,7 @@
No deletion without permission, or be held responsible to law. -->
<template>
<name>package</name>
<filePath>${module.moduleCode}/${module.moduleCode}/bin</filePath>
<filePath>${baseDir}/${moduleCode}/${moduleCode}/bin</filePath>
<fileName>package.bat</fileName>
<charset>GBK</charset>
<content><![CDATA[@echo off

View File

@@ -3,7 +3,7 @@
No deletion without permission, or be held responsible to law. -->
<template>
<name>package</name>
<filePath>${module.moduleCode}/${module.moduleCode}/bin</filePath>
<filePath>${baseDir}/${moduleCode}/${moduleCode}/bin</filePath>
<fileName>package.sh</fileName>
<content><![CDATA[#!/bin/sh
# /**

View File

@@ -3,7 +3,7 @@
No deletion without permission, or be held responsible to law. -->
<template>
<name>run-tomcat</name>
<filePath>${module.moduleCode}/${module.moduleCode}/bin</filePath>
<filePath>${baseDir}/${moduleCode}/${moduleCode}/bin</filePath>
<fileName>run-tomcat.bat</fileName>
<charset>GBK</charset>
<content><![CDATA[@echo off

View File

@@ -3,7 +3,7 @@
No deletion without permission, or be held responsible to law. -->
<template>
<name>run-tomcat</name>
<filePath>${module.moduleCode}/${module.moduleCode}/bin</filePath>
<filePath>${baseDir}/${moduleCode}/${moduleCode}/bin</filePath>
<fileName>run-tomcat.sh</fileName>
<content><![CDATA[#!/bin/sh
# /**

View File

@@ -3,7 +3,7 @@
No deletion without permission, or be held responsible to law. -->
<template>
<name>run-web</name>
<filePath>${module.moduleCode}/${module.moduleCode}/bin</filePath>
<filePath>${baseDir}/${moduleCode}/${moduleCode}/bin</filePath>
<fileName>run-web.bat</fileName>
<charset>GBK</charset>
<content><![CDATA[@echo off

View File

@@ -3,7 +3,7 @@
No deletion without permission, or be held responsible to law. -->
<template>
<name>run-web</name>
<filePath>${module.moduleCode}/${module.moduleCode}/bin</filePath>
<filePath>${baseDir}/${moduleCode}/${moduleCode}/bin</filePath>
<fileName>run-web.sh</fileName>
<content><![CDATA[#!/bin/sh
# /**

View File

@@ -3,8 +3,8 @@
No deletion without permission, or be held responsible to law. -->
<template>
<name>erm</name>
<filePath>${module.moduleCode}/${module.moduleCode}/db</filePath>
<fileName>${module.moduleCode}.erm</fileName>
<filePath>${baseDir}/${moduleCode}/${moduleCode}/db</filePath>
<fileName>${moduleCode}.erm</fileName>
<content><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
<diagram>
<page_setting>
@@ -48,7 +48,7 @@
<suspend_validator>false</suspend_validator>
<export_setting>
<export_ddl_setting>
<output_path>db${'\\'}${module.moduleCode}.sql</output_path>
<output_path>db${'\\'}${moduleCode}.sql</output_path>
<encoding>UTF-8</encoding>
<line_feed>CR+LF</line_feed>
<is_open_after_saved>false</is_open_after_saved>
@@ -80,7 +80,7 @@
</export_ddl_setting>
<export_excel_setting>
<category_id>null</category_id>
<output_path>db${'\\'}${module.moduleCode}.xls</output_path>
<output_path>db${'\\'}${moduleCode}.xls</output_path>
<template></template>
<template_path></template_path>
<used_default_template_lang>en</used_default_template_lang>
@@ -96,7 +96,7 @@
<is_open_after_saved>true</is_open_after_saved>
</export_html_setting>
<export_image_setting>
<output_file_path>db${'\\'}${module.moduleCode}.png</output_file_path>
<output_file_path>db${'\\'}${moduleCode}.png</output_file_path>
<category_dir_path></category_dir_path>
<with_category_image>true</with_category_image>
<is_open_after_saved>true</is_open_after_saved>

View File

@@ -3,7 +3,7 @@
No deletion without permission, or be held responsible to law. -->
<template>
<name>pom</name>
<filePath>${module.moduleCode}/${module.moduleCode}</filePath>
<filePath>${baseDir}/${moduleCode}/${moduleCode}</filePath>
<fileName>pom.xml</fileName>
<charset></charset>
<content><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
@@ -18,10 +18,10 @@
<relativePath>../../../parent/web/pom.xml</relativePath>
</parent>
<artifactId>jeesite-cloud-module-${module.moduleCode}</artifactId>
<artifactId>jeesite-cloud-module-${moduleCode}</artifactId>
<packaging>war</packaging>
<name>JeeSite Cloud Module ${module.moduleName}</name>
<name>JeeSite Cloud Module ${moduleName}</name>
<url>http://jeesite.com</url>
<inceptionYear>2013-Now</inceptionYear>
@@ -48,10 +48,10 @@
<version>\${project.parent.version}</version>
</dependency>
<!-- ${module.moduleName}模块 -->
<!-- ${moduleName}模块 -->
<dependency>
<groupId>com.jeesite</groupId>
<artifactId>jeesite-cloud-module-${module.moduleCode}-client</artifactId>
<artifactId>jeesite-cloud-module-${moduleCode}-client</artifactId>
<version>\${project.parent.version}</version>
</dependency>

View File

@@ -3,7 +3,7 @@
No deletion without permission, or be held responsible to law. -->
<template>
<name>package</name>
<filePath>${module.moduleCode}/${module.moduleCode}/src/main/java/com/jeesite/modules/${module.moduleCode}</filePath>
<filePath>${baseDir}/${moduleCode}/${moduleCode}/src/main/java/com/jeesite/modules/${moduleCode}</filePath>
<fileName></fileName>
<content><![CDATA[

View File

@@ -3,7 +3,7 @@
No deletion without permission, or be held responsible to law. -->
<template>
<name>start-class</name>
<filePath>${module.moduleCode}/${module.moduleCode}/src/main/java/com/jeesite/modules</filePath>
<filePath>${baseDir}/${moduleCode}/${moduleCode}/src/main/java/com/jeesite/modules</filePath>
<fileName>${@StringUtils.cap(module.moduleCode)}Application.java</fileName>
<content><![CDATA[/**
* Copyright (c) 2013-Now http://jeesite.com All rights reserved.

View File

@@ -3,7 +3,7 @@
No deletion without permission, or be held responsible to law. -->
<template>
<name>bootstrap</name>
<filePath>${module.moduleCode}/${module.moduleCode}/src/main/resources/config</filePath>
<filePath>${baseDir}/${moduleCode}/${moduleCode}/src/main/resources/config</filePath>
<fileName>bootstrap.yml</fileName>
<content><![CDATA[
#======================================#
@@ -41,7 +41,7 @@ spring:
# 应用程序名称
application:
name: jeesite-cloud-module-${module.moduleCode}
name: jeesite-cloud-module-${moduleCode}
# 当前环境名称(注意:不可设置为 test 它是单元测试专用的名称)
profiles:

View File

@@ -3,7 +3,7 @@
No deletion without permission, or be held responsible to law. -->
<template>
<name>logback-spring</name>
<filePath>${module.moduleCode}/${module.moduleCode}/src/main/resources/config</filePath>
<filePath>${baseDir}/${moduleCode}/${moduleCode}/src/main/resources/config</filePath>
<fileName>logback-spring.xml</fileName>
<content><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
<configuration debug="false" scan="false">

View File

@@ -3,7 +3,7 @@
No deletion without permission, or be held responsible to law. -->
<template>
<name>static</name>
<filePath>${module.moduleCode}/${module.moduleCode}/src/main/resources/static/modules/${module.moduleCode}</filePath>
<filePath>${baseDir}/${moduleCode}/${moduleCode}/src/main/resources/static/modules/${moduleCode}</filePath>
<fileName></fileName>
<content><![CDATA[