Переглянути джерело

重新生成scene
修改dto为vo

by su 3 роки тому
батько
коміт
b2da1ae134

+ 1 - 4
4dkankan-center-scene/src/main/java/com/fdkankan/scene/SceneApplication.java

@@ -1,15 +1,12 @@
 package com.fdkankan.scene;
 package com.fdkankan.scene;
 
 
-import com.fdkankan.common.config.ShiroConfig;
 import com.fdkankan.common.exception.GlobalExceptionHandler;
 import com.fdkankan.common.exception.GlobalExceptionHandler;
-import com.fdkankan.common.jwt.JwtFilter;
 import com.fdkankan.common.response.ResultData;
 import com.fdkankan.common.response.ResultData;
-import com.fdkankan.scene.dto.TestDto;
+import com.fdkankan.scene.vo.TestDto;
 import org.mybatis.spring.annotation.MapperScan;
 import org.mybatis.spring.annotation.MapperScan;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.boot.SpringApplication;
 import org.springframework.boot.SpringApplication;
 import org.springframework.boot.autoconfigure.SpringBootApplication;
 import org.springframework.boot.autoconfigure.SpringBootApplication;
-import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
 import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
 import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
 import org.springframework.context.annotation.Bean;
 import org.springframework.context.annotation.Bean;
 import org.springframework.data.redis.core.RedisTemplate;
 import org.springframework.data.redis.core.RedisTemplate;

+ 1 - 1
4dkankan-center-scene/src/main/java/com/fdkankan/scene/dto/TestDto.java

@@ -1,4 +1,4 @@
-package com.fdkankan.scene.dto;
+package com.fdkankan.scene.vo;
 
 
 import com.fasterxml.jackson.annotation.JsonProperty;
 import com.fasterxml.jackson.annotation.JsonProperty;
 import lombok.Data;
 import lombok.Data;

+ 1 - 1
4dkankan-gateway/src/main/resources/bootstrap.yml

@@ -1,5 +1,5 @@
 server:
 server:
-  port: 8081
+  port: 8080
 spring:
 spring:
   application:
   application:
     name: 4dkankan-gateway
     name: 4dkankan-gateway

+ 27 - 6
4dkankan-pom/src/test/java/AutoGenerate.java

@@ -12,14 +12,35 @@ public class AutoGenerate {
 
 
     @Test
     @Test
     public  void generate() {
     public  void generate() {
-        String path ="H:\\project\\4dkankan-parent\\test";
+        String path ="F:\\code2\\4dkankan-parent\\4dkankan-center-scene";
         List<String> tables = new ArrayList<>();
         List<String> tables = new ArrayList<>();
-        tables.add("t_agent");
-        String moduleName ="test";
-        FastAutoGenerator.create("jdbc:mysql://localhost:3306/test",
-                "root","123456")
+        tables.add("t_folder_scene");
+        tables.add("t_scene");
+        tables.add("t_scene_3d_num");
+        tables.add("t_scene_3dfamily");
+        tables.add("t_scene_cooperation");
+        tables.add("t_scene_data_download");
+        tables.add("t_scene_download_log");
+        tables.add("t_scene_feedback");
+        tables.add("t_scene_file_build");
+        tables.add("t_scene_file_upload");
+        tables.add("t_scene_module_video");
+        tables.add("t_scene_pro");
+        tables.add("t_scene_pro_edit");
+        tables.add("t_scene_pro_edit_ext");
+        tables.add("t_scene_pro_ext");
+        tables.add("t_scene_record");
+        tables.add("t_scene_resource");
+        tables.add("t_scene_resource_camera");
+        tables.add("t_scene_resource_cooperation");
+        tables.add("t_scene_statistics");
+
+
+        String moduleName ="scene";
+        FastAutoGenerator.create("jdbc:mysql://120.25.146.52:3306/4dkankan-center-scene",
+                "root","4dkk2020test%")
                 .globalConfig(builder -> {
                 .globalConfig(builder -> {
-                    builder.author("")               //作者
+                    builder.author("dengsixing")               //作者
                             .outputDir(path+"\\src\\main\\java")    //输出路径(写到java目录)
                             .outputDir(path+"\\src\\main\\java")    //输出路径(写到java目录)
                             //.enableSwagger()           //开启swagger
                             //.enableSwagger()           //开启swagger
                             .commentDate("yyyy-MM-dd")
                             .commentDate("yyyy-MM-dd")