🎉 2.2.2.RELEASE

This commit is contained in:
smallchill 2019-04-17 11:28:03 +08:00
parent 7a159ae92e
commit 5759ad4506
33 changed files with 22 additions and 22 deletions

View File

@ -5,7 +5,7 @@
<parent> <parent>
<groupId>org.springblade</groupId> <groupId>org.springblade</groupId>
<artifactId>blade-tool</artifactId> <artifactId>blade-tool</artifactId>
<version>2.2.1</version> <version>2.2.2</version>
</parent> </parent>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>

View File

@ -5,7 +5,7 @@
<parent> <parent>
<artifactId>blade-tool</artifactId> <artifactId>blade-tool</artifactId>
<groupId>org.springblade</groupId> <groupId>org.springblade</groupId>
<version>2.2.1</version> <version>2.2.2</version>
</parent> </parent>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>

View File

@ -5,7 +5,7 @@
<parent> <parent>
<artifactId>blade-tool</artifactId> <artifactId>blade-tool</artifactId>
<groupId>org.springblade</groupId> <groupId>org.springblade</groupId>
<version>2.2.1</version> <version>2.2.2</version>
</parent> </parent>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>

View File

@ -40,7 +40,7 @@ public class CodeGenerator {
/** /**
* 前端代码生成所属系统 * 前端代码生成所属系统
*/ */
public static String SYSTEM_NAME = "saber"; public static String SYSTEM_NAME = "templates/saber";
/** /**
* 前端代码生成地址 * 前端代码生成地址
*/ */

View File

@ -24,10 +24,10 @@ public interface DevelopConstant {
/** /**
* sword 系统名 * sword 系统名
*/ */
String SWORD_NAME = "sword"; String SWORD_NAME = "templates/sword";
/** /**
* saber 系统名 * saber 系统名
*/ */
String SABER_NAME = "saber"; String SABER_NAME = "templates/saber";
} }

View File

@ -194,7 +194,7 @@ public class BladeCodeGenerator {
@Override @Override
public String outputFile(TableInfo tableInfo) { public String outputFile(TableInfo tableInfo) {
map.put("entityKey", (tableInfo.getEntityName().toLowerCase())); map.put("entityKey", (tableInfo.getEntityName().toLowerCase()));
return getOutputDir() + "/" + "/sql/" + tableInfo.getEntityName().toLowerCase() + ".menu.mysql"; return getOutputDir() + "/" + "/templates/sql/" + tableInfo.getEntityName().toLowerCase() + ".menu.mysql";
} }
}); });
focList.add(new FileOutConfig("/templates/entityVO.java.vm") { focList.add(new FileOutConfig("/templates/entityVO.java.vm") {

View File

@ -27,7 +27,7 @@
</template> </template>
<script> <script>
import {getList, getDetail, add, update, remove} from "@/api/$!{cfg.servicePackage}/$!{cfg.entityKey}"; import {getList, getDetail, add, update, remove} from "templates/saber/crud.vue$!{cfg.servicePackage}/$!{cfg.entityKey}";
import {mapGetters} from "vuex"; import {mapGetters} from "vuex";
export default { export default {

View File

@ -4,7 +4,7 @@ import { Form, Input, Card, Button } from 'antd';
import { connect } from 'dva'; import { connect } from 'dva';
import Panel from '../../../components/Panel'; import Panel from '../../../components/Panel';
import styles from '../../../layouts/Sword.less'; import styles from '../../../layouts/Sword.less';
import { $!{upperEntityPath}_SUBMIT } from '../../../actions/$!{table.entityPath}'; import { $!{upperEntityPath}_SUBMIT } from './add.js$!{table.entityPath}';
const FormItem = Form.Item; const FormItem = Form.Item;

View File

@ -4,7 +4,7 @@ import { Form, Input, Card, Button } from 'antd';
import { connect } from 'dva'; import { connect } from 'dva';
import Panel from '../../../components/Panel'; import Panel from '../../../components/Panel';
import styles from '../../../layouts/Sword.less'; import styles from '../../../layouts/Sword.less';
import { $!{upperEntityPath}_DETAIL, $!{upperEntityPath}_SUBMIT } from '../../../actions/$!{table.entityPath}'; import { $!{upperEntityPath}_DETAIL, $!{upperEntityPath}_SUBMIT } from './edit.js$!{table.entityPath}';
const FormItem = Form.Item; const FormItem = Form.Item;

View File

@ -3,7 +3,7 @@ import React, { PureComponent } from 'react';
import { connect } from 'dva'; import { connect } from 'dva';
import { Button, Col, Form, Input, Row } from 'antd'; import { Button, Col, Form, Input, Row } from 'antd';
import Panel from '../../../components/Panel'; import Panel from '../../../components/Panel';
import { $!{upperEntityPath}_LIST } from '../../../actions/$!{table.entityPath}'; import { $!{upperEntityPath}_LIST } from './list.js$!{table.entityPath}';
import Grid from '../../../components/Sword/Grid'; import Grid from '../../../components/Sword/Grid';
const FormItem = Form.Item; const FormItem = Form.Item;

View File

@ -1,8 +1,8 @@
#set($upperEntityPath=$table.entityPath.toUpperCase()) #set($upperEntityPath=$table.entityPath.toUpperCase())
import { message } from 'antd'; import { message } from 'antd';
import router from 'umi/router'; import router from 'umi/router';
import { $!{upperEntityPath}_NAMESPACE } from '../actions/$!{table.entityPath}'; import { $!{upperEntityPath}_NAMESPACE } from './model.js$!{table.entityPath}';
import { list, submit, detail, remove } from '../services/$!{table.entityPath}'; import { list, submit, detail, remove } from './model.js$!{table.entityPath}';
export default { export default {
namespace: $!{upperEntityPath}_NAMESPACE, namespace: $!{upperEntityPath}_NAMESPACE,

View File

@ -5,7 +5,7 @@ import { Form, Card, Button } from 'antd';
import { connect } from 'dva'; import { connect } from 'dva';
import Panel from '../../../components/Panel'; import Panel from '../../../components/Panel';
import styles from '../../../layouts/Sword.less'; import styles from '../../../layouts/Sword.less';
import { $!{upperEntityPath}_DETAIL } from '../../../actions/$!{table.entityPath}'; import { $!{upperEntityPath}_DETAIL } from './view.js$!{table.entityPath}';
const FormItem = Form.Item; const FormItem = Form.Item;

View File

@ -5,7 +5,7 @@
<parent> <parent>
<artifactId>blade-tool</artifactId> <artifactId>blade-tool</artifactId>
<groupId>org.springblade</groupId> <groupId>org.springblade</groupId>
<version>2.2.1</version> <version>2.2.2</version>
</parent> </parent>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>

View File

@ -5,7 +5,7 @@
<parent> <parent>
<artifactId>blade-tool</artifactId> <artifactId>blade-tool</artifactId>
<groupId>org.springblade</groupId> <groupId>org.springblade</groupId>
<version>2.2.1</version> <version>2.2.2</version>
</parent> </parent>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>

View File

@ -5,7 +5,7 @@
<parent> <parent>
<artifactId>blade-tool</artifactId> <artifactId>blade-tool</artifactId>
<groupId>org.springblade</groupId> <groupId>org.springblade</groupId>
<version>2.2.1</version> <version>2.2.2</version>
</parent> </parent>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>

View File

@ -5,7 +5,7 @@
<parent> <parent>
<artifactId>blade-tool</artifactId> <artifactId>blade-tool</artifactId>
<groupId>org.springblade</groupId> <groupId>org.springblade</groupId>
<version>2.2.1</version> <version>2.2.2</version>
</parent> </parent>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>

View File

@ -5,7 +5,7 @@
<parent> <parent>
<artifactId>blade-tool</artifactId> <artifactId>blade-tool</artifactId>
<groupId>org.springblade</groupId> <groupId>org.springblade</groupId>
<version>2.2.1</version> <version>2.2.2</version>
</parent> </parent>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>

View File

@ -6,7 +6,7 @@
<parent> <parent>
<groupId>org.springblade</groupId> <groupId>org.springblade</groupId>
<artifactId>blade-tool</artifactId> <artifactId>blade-tool</artifactId>
<version>2.2.1</version> <version>2.2.2</version>
</parent> </parent>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>

View File

@ -5,7 +5,7 @@
<groupId>org.springblade</groupId> <groupId>org.springblade</groupId>
<artifactId>blade-tool</artifactId> <artifactId>blade-tool</artifactId>
<version>2.2.1</version> <version>2.2.2</version>
<packaging>pom</packaging> <packaging>pom</packaging>
<name>blade-tool</name> <name>blade-tool</name>
<description> <description>
@ -36,7 +36,7 @@
</scm> </scm>
<properties> <properties>
<blade.tool.version>2.2.1</blade.tool.version> <blade.tool.version>2.2.2</blade.tool.version>
<java.version>1.8</java.version> <java.version>1.8</java.version>
<maven.plugin.version>3.8.0</maven.plugin.version> <maven.plugin.version>3.8.0</maven.plugin.version>