diff --git a/generator-web/src/main/resources/application-dev.yml b/generator-web/src/main/resources/application-dev.yml index 42869ce0..6d6c2491 100644 --- a/generator-web/src/main/resources/application-dev.yml +++ b/generator-web/src/main/resources/application-dev.yml @@ -52,11 +52,11 @@ OEM: keywords: sql转实体类,sql转DAO,SQL转service,SQL转JPA实现,SQL转MYBATIS实现 title: JAVA代码生成平台 slogan: For reducing the repetitive CRUD work - description: SpringBootCodeGenerator(JAVA代码生成平台),又名`大狼狗代码生成器`、`SQL转JAVA`、`SQL转JPA`、`SQL转Mybatis`、`Mybatis在线生成器`、`SQL转Java JPA、MYBATIS实现类代码生成平台`。 - author: zhengkai.blog.csdn.net - packageName: com.software.system - copyright: powered by Moshow郑锴(大狼狗) - returnUtilSuccess: ReturnT.success - returnUtilFailure: ReturnT.error - outputStr: zhengkai.blog.csdn.net + description: SpringBootCodeGenerator(JAVA代码生成平台),`SQL转JAVA`、`SQL转JPA`、`SQL转Mybatis`、`Mybatis在线生成器`、`SQL转Java JPA、MYBATIS实现类代码生成平台`。 + author: genius + packageName: com.example + copyright: powered by Moshow + returnUtilSuccess: CommonResult.success + returnUtilFailure: CommonResult.error + outputStr: com.example mode: local diff --git a/generator-web/src/main/resources/statics/css/main.css b/generator-web/src/main/resources/statics/css/main.css index 87fc54a0..a3ce99b7 100644 --- a/generator-web/src/main/resources/statics/css/main.css +++ b/generator-web/src/main/resources/statics/css/main.css @@ -52,4 +52,7 @@ tbody > tr > th {font-weight: normal; } .form-horizontal{ /*width:550px;*/ padding-top:20px; +} +.skin-blue .wrapper, .skin-blue .main-sidebar, .skin-blue .left-side { + background-color: #fff; } \ No newline at end of file diff --git a/generator-web/src/main/resources/statics/js/index.js b/generator-web/src/main/resources/statics/js/index.js index 002c8f8a..d48d8b57 100644 --- a/generator-web/src/main/resources/statics/js/index.js +++ b/generator-web/src/main/resources/statics/js/index.js @@ -1,7 +1,7 @@ //iframe自适应 $(window).on('resize', function() { const $content = $('.content'); - $content.height($(this).height() - 154); + $content.height($(this).height() - 30); $content.find('iframe').each(function() { $(this).height($content.height()); }); diff --git a/generator-web/src/main/resources/statics/js/main.js b/generator-web/src/main/resources/statics/js/main.js index fd01eb03..4da2dbb3 100644 --- a/generator-web/src/main/resources/statics/js/main.js +++ b/generator-web/src/main/resources/statics/js/main.js @@ -47,10 +47,10 @@ const vm = new Vue({ returnUtilFailure: "${(value.returnUtilFailure)!!}", isPackageType: true, - isSwagger: false, - isAutoImport: false, - isWithPackage: false, - isComment: true, + isSwagger: true, + isAutoImport: true, + isWithPackage: true, + isComment: false, isLombok: true, ignorePrefix:"sys_", diff --git a/generator-web/src/main/resources/template.json b/generator-web/src/main/resources/template.json index 13c6cb21..b6b861c0 100644 --- a/generator-web/src/main/resources/template.json +++ b/generator-web/src/main/resources/template.json @@ -1,32 +1,28 @@ -[{ - "group": "ui", - "templates": [{ - "id": "10", - "name": "swagger-ui", - "description": "swagger-ui" - }, - { - "id": "11", - "name": "element-ui", - "description": "element-ui" - }, - { - "id": "12", - "name": "bootstrap-ui", - "description": "bootstrap-ui" - }, - { - "id": "13", - "name": "layui-edit", - "description": "layui-edit" +[ + { + "group": "mybatis-plus", + "templates": [{ + "id": "60", + "name": "pluscontroller", + "description": "pluscontroller" }, - { - "id": "14", - "name": "layui-list", - "description": "layui-list" - } - ] -}, + { + "id": "61", + "name": "plusservice", + "description": "plusservice" + }, + { + "id": "62", + "name": "plusmapper", + "description": "plusmapper" + }, + { + "id": "63", + "name": "plusentity", + "description": "plusentity" + } + ] + }, { "group": "mybatis", "templates": [{ @@ -121,76 +117,6 @@ ] }, - { - "group": "mybatis-plus", - "templates": [{ - "id": "60", - "name": "pluscontroller", - "description": "pluscontroller" - }, - { - "id": "61", - "name": "plusservice", - "description": "plusservice" - }, - { - "id": "62", - "name": "plusmapper", - "description": "plusmapper" - }, - { - "id": "63", - "name": "plusentity", - "description": "plusentity" - } - ] - }, - - { - "group": "util", - "templates": [{ - "id": "70", - "name": "beanutil", - "description": "beanutil" - }, - { - "id": "71", - "name": "json", - "description": "json" - }, - { - "id": "72", - "name": "xml", - "description": "xml" - }, - { - "id": "73", - "name": "sql", - "description": "sql" - }, - { - "id": "74", - "name": "swagger-yml", - "description": "swagger-yml" - } - ] - }, - - { - "group": "common-mapper", - "templates": [{ - "id": "81", - "name": "tkentity", - "description": "tkentity" - }, - { - "id": "82", - "name": "tkmapper", - "description": "tkmapper" - } - ] - }, - { "group": "renren-fast", "templates": [{ @@ -232,21 +158,31 @@ }, { - "group": "jpa-starp", + "group": "util", "templates": [{ - "id": "101", - "name": "starp-entity", - "description": "entity" + "id": "70", + "name": "beanutil", + "description": "beanutil" }, { - "id": "102", - "name": "starp-repository", - "description": "repository" + "id": "71", + "name": "json", + "description": "json" }, { - "id": "103", - "name": "starp-jpa-controller", - "description": "jpacontroller" + "id": "72", + "name": "xml", + "description": "xml" + }, + { + "id": "73", + "name": "sql", + "description": "sql" + }, + { + "id": "74", + "name": "swagger-yml", + "description": "swagger-yml" } ] } diff --git a/generator-web/src/main/resources/template2.json b/generator-web/src/main/resources/template2.json new file mode 100644 index 00000000..13c6cb21 --- /dev/null +++ b/generator-web/src/main/resources/template2.json @@ -0,0 +1,253 @@ +[{ + "group": "ui", + "templates": [{ + "id": "10", + "name": "swagger-ui", + "description": "swagger-ui" + }, + { + "id": "11", + "name": "element-ui", + "description": "element-ui" + }, + { + "id": "12", + "name": "bootstrap-ui", + "description": "bootstrap-ui" + }, + { + "id": "13", + "name": "layui-edit", + "description": "layui-edit" + }, + { + "id": "14", + "name": "layui-list", + "description": "layui-list" + } + ] +}, + { + "group": "mybatis", + "templates": [{ + "id": "20", + "name": "controller", + "description": "controller" + }, + { + "id": "21", + "name": "service", + "description": "service" + }, + { + "id": "22", + "name": "service_impl", + "description": "service_impl" + }, + { + "id": "23", + "name": "mapper", + "description": "mapper" + }, + { + "id": "24", + "name": "mybatis", + "description": "mybatis" + }, + { + "id": "25", + "name": "model", + "description": "model" + }, + { + "id": "26", + "name": "mapper2", + "description": "mapper annotation" + } + ] + }, + { + "group": "jpa", + "templates": [{ + "id": "30", + "name": "entity", + "description": "entity" + }, + { + "id": "31", + "name": "repository", + "description": "repository" + }, + { + "id": "32", + "name": "jpacontroller", + "description": "jpacontroller" + } + ] + }, + + { + "group": "jdbc-template", + "templates": [{ + "id": "40", + "name": "jtdao", + "description": "jtdao" + }, + { + "id": "41", + "name": "jtdaoimpl", + "description": "jtdaoimpl" + } + ] + }, + + { + "group": "beetlsql", + "templates": [{ + "id": "50", + "name": "beetlmd", + "description": "beetlmd" + }, + { + "id": "51", + "name": "beetlentity", + "description": "beetlentity" + }, + { + "id": "52", + "name": "beetlcontroller", + "description": "beetlcontroller" + } + ] + }, + + { + "group": "mybatis-plus", + "templates": [{ + "id": "60", + "name": "pluscontroller", + "description": "pluscontroller" + }, + { + "id": "61", + "name": "plusservice", + "description": "plusservice" + }, + { + "id": "62", + "name": "plusmapper", + "description": "plusmapper" + }, + { + "id": "63", + "name": "plusentity", + "description": "plusentity" + } + ] + }, + + { + "group": "util", + "templates": [{ + "id": "70", + "name": "beanutil", + "description": "beanutil" + }, + { + "id": "71", + "name": "json", + "description": "json" + }, + { + "id": "72", + "name": "xml", + "description": "xml" + }, + { + "id": "73", + "name": "sql", + "description": "sql" + }, + { + "id": "74", + "name": "swagger-yml", + "description": "swagger-yml" + } + ] + }, + + { + "group": "common-mapper", + "templates": [{ + "id": "81", + "name": "tkentity", + "description": "tkentity" + }, + { + "id": "82", + "name": "tkmapper", + "description": "tkmapper" + } + ] + }, + + { + "group": "renren-fast", + "templates": [{ + "id": "91", + "name": "menu-sql", + "description": "menu-sql" + }, + { + "id": "92", + "name": "vue-list", + "description": "vue-list" + }, + { + "id": "93", + "name": "vue-edit", + "description": "vue-edit" + }, + { + "id": "94", + "name": "rr-controller", + "description": "rr-controller" + }, + { + "id": "95", + "name": "rr-dao", + "description": "rr-dao" + }, + { + "id": "96", + "name": "rr-daoxml", + "description": "rr-daoxml" + }, + { + "id": "97", + "name": "rr-service", + "description": "rr-service" + } + ] + }, + + { + "group": "jpa-starp", + "templates": [{ + "id": "101", + "name": "starp-entity", + "description": "entity" + }, + { + "id": "102", + "name": "starp-repository", + "description": "repository" + }, + { + "id": "103", + "name": "starp-jpa-controller", + "description": "jpacontroller" + } + ] + } +] diff --git a/generator-web/src/main/resources/templates/index.html b/generator-web/src/main/resources/templates/index.html index 81006149..b47f6f21 100644 --- a/generator-web/src/main/resources/templates/index.html +++ b/generator-web/src/main/resources/templates/index.html @@ -12,28 +12,28 @@