From 85c303981294b0eba3bf47af076d397df6fa80d0 Mon Sep 17 00:00:00 2001 From: yingtingxu Date: Thu, 6 Jun 2024 09:02:12 +0800 Subject: [PATCH] refactor: rename module --- {mall-cloud-native => mall-catalog}/build.gradle | 0 .../src/main/java/org/mall/catalogservice/Application.java | 0 .../java/org/mall/catalogservice/config/MallProperties.java | 0 .../java/org/mall/catalogservice/demo/BookDataLoader.java | 0 .../src/main/java/org/mall/catalogservice/domain/Book.java | 0 .../catalogservice/domain/BookAlreadyExistsException.java | 0 .../mall/catalogservice/domain/BookNotFoundException.java | 0 .../java/org/mall/catalogservice/domain/BookRepository.java | 0 .../java/org/mall/catalogservice/domain/BookService.java | 0 .../catalogservice/persistence/InMemoryBookRepository.java | 0 .../java/org/mall/catalogservice/web/BookController.java | 0 .../org/mall/catalogservice/web/BookControllerAdvice.java | 0 .../java/org/mall/catalogservice/web/HomeController.java | 0 .../src/main/resources/application.yml | 0 .../test/java/org/mall/catalogservice/ApplicationTests.java | 0 .../org/mall/catalogservice/domain/BookValidationTests.java | 0 .../org/mall/catalogservice/web/BookControllerMvcTests.java | 0 .../test/java/org/mall/catalogservice/web/BookJsonTests.java | 0 settings.gradle | 5 ++--- 19 files changed, 2 insertions(+), 3 deletions(-) rename {mall-cloud-native => mall-catalog}/build.gradle (100%) rename {mall-cloud-native => mall-catalog}/src/main/java/org/mall/catalogservice/Application.java (100%) rename {mall-cloud-native => mall-catalog}/src/main/java/org/mall/catalogservice/config/MallProperties.java (100%) rename {mall-cloud-native => mall-catalog}/src/main/java/org/mall/catalogservice/demo/BookDataLoader.java (100%) rename {mall-cloud-native => mall-catalog}/src/main/java/org/mall/catalogservice/domain/Book.java (100%) rename {mall-cloud-native => mall-catalog}/src/main/java/org/mall/catalogservice/domain/BookAlreadyExistsException.java (100%) rename {mall-cloud-native => mall-catalog}/src/main/java/org/mall/catalogservice/domain/BookNotFoundException.java (100%) rename {mall-cloud-native => mall-catalog}/src/main/java/org/mall/catalogservice/domain/BookRepository.java (100%) rename {mall-cloud-native => mall-catalog}/src/main/java/org/mall/catalogservice/domain/BookService.java (100%) rename {mall-cloud-native => mall-catalog}/src/main/java/org/mall/catalogservice/persistence/InMemoryBookRepository.java (100%) rename {mall-cloud-native => mall-catalog}/src/main/java/org/mall/catalogservice/web/BookController.java (100%) rename {mall-cloud-native => mall-catalog}/src/main/java/org/mall/catalogservice/web/BookControllerAdvice.java (100%) rename {mall-cloud-native => mall-catalog}/src/main/java/org/mall/catalogservice/web/HomeController.java (100%) rename {mall-cloud-native => mall-catalog}/src/main/resources/application.yml (100%) rename {mall-cloud-native => mall-catalog}/src/test/java/org/mall/catalogservice/ApplicationTests.java (100%) rename {mall-cloud-native => mall-catalog}/src/test/java/org/mall/catalogservice/domain/BookValidationTests.java (100%) rename {mall-cloud-native => mall-catalog}/src/test/java/org/mall/catalogservice/web/BookControllerMvcTests.java (100%) rename {mall-cloud-native => mall-catalog}/src/test/java/org/mall/catalogservice/web/BookJsonTests.java (100%) diff --git a/mall-cloud-native/build.gradle b/mall-catalog/build.gradle similarity index 100% rename from mall-cloud-native/build.gradle rename to mall-catalog/build.gradle diff --git a/mall-cloud-native/src/main/java/org/mall/catalogservice/Application.java b/mall-catalog/src/main/java/org/mall/catalogservice/Application.java similarity index 100% rename from mall-cloud-native/src/main/java/org/mall/catalogservice/Application.java rename to mall-catalog/src/main/java/org/mall/catalogservice/Application.java diff --git a/mall-cloud-native/src/main/java/org/mall/catalogservice/config/MallProperties.java b/mall-catalog/src/main/java/org/mall/catalogservice/config/MallProperties.java similarity index 100% rename from mall-cloud-native/src/main/java/org/mall/catalogservice/config/MallProperties.java rename to mall-catalog/src/main/java/org/mall/catalogservice/config/MallProperties.java diff --git a/mall-cloud-native/src/main/java/org/mall/catalogservice/demo/BookDataLoader.java b/mall-catalog/src/main/java/org/mall/catalogservice/demo/BookDataLoader.java similarity index 100% rename from mall-cloud-native/src/main/java/org/mall/catalogservice/demo/BookDataLoader.java rename to mall-catalog/src/main/java/org/mall/catalogservice/demo/BookDataLoader.java diff --git a/mall-cloud-native/src/main/java/org/mall/catalogservice/domain/Book.java b/mall-catalog/src/main/java/org/mall/catalogservice/domain/Book.java similarity index 100% rename from mall-cloud-native/src/main/java/org/mall/catalogservice/domain/Book.java rename to mall-catalog/src/main/java/org/mall/catalogservice/domain/Book.java diff --git a/mall-cloud-native/src/main/java/org/mall/catalogservice/domain/BookAlreadyExistsException.java b/mall-catalog/src/main/java/org/mall/catalogservice/domain/BookAlreadyExistsException.java similarity index 100% rename from mall-cloud-native/src/main/java/org/mall/catalogservice/domain/BookAlreadyExistsException.java rename to mall-catalog/src/main/java/org/mall/catalogservice/domain/BookAlreadyExistsException.java diff --git a/mall-cloud-native/src/main/java/org/mall/catalogservice/domain/BookNotFoundException.java b/mall-catalog/src/main/java/org/mall/catalogservice/domain/BookNotFoundException.java similarity index 100% rename from mall-cloud-native/src/main/java/org/mall/catalogservice/domain/BookNotFoundException.java rename to mall-catalog/src/main/java/org/mall/catalogservice/domain/BookNotFoundException.java diff --git a/mall-cloud-native/src/main/java/org/mall/catalogservice/domain/BookRepository.java b/mall-catalog/src/main/java/org/mall/catalogservice/domain/BookRepository.java similarity index 100% rename from mall-cloud-native/src/main/java/org/mall/catalogservice/domain/BookRepository.java rename to mall-catalog/src/main/java/org/mall/catalogservice/domain/BookRepository.java diff --git a/mall-cloud-native/src/main/java/org/mall/catalogservice/domain/BookService.java b/mall-catalog/src/main/java/org/mall/catalogservice/domain/BookService.java similarity index 100% rename from mall-cloud-native/src/main/java/org/mall/catalogservice/domain/BookService.java rename to mall-catalog/src/main/java/org/mall/catalogservice/domain/BookService.java diff --git a/mall-cloud-native/src/main/java/org/mall/catalogservice/persistence/InMemoryBookRepository.java b/mall-catalog/src/main/java/org/mall/catalogservice/persistence/InMemoryBookRepository.java similarity index 100% rename from mall-cloud-native/src/main/java/org/mall/catalogservice/persistence/InMemoryBookRepository.java rename to mall-catalog/src/main/java/org/mall/catalogservice/persistence/InMemoryBookRepository.java diff --git a/mall-cloud-native/src/main/java/org/mall/catalogservice/web/BookController.java b/mall-catalog/src/main/java/org/mall/catalogservice/web/BookController.java similarity index 100% rename from mall-cloud-native/src/main/java/org/mall/catalogservice/web/BookController.java rename to mall-catalog/src/main/java/org/mall/catalogservice/web/BookController.java diff --git a/mall-cloud-native/src/main/java/org/mall/catalogservice/web/BookControllerAdvice.java b/mall-catalog/src/main/java/org/mall/catalogservice/web/BookControllerAdvice.java similarity index 100% rename from mall-cloud-native/src/main/java/org/mall/catalogservice/web/BookControllerAdvice.java rename to mall-catalog/src/main/java/org/mall/catalogservice/web/BookControllerAdvice.java diff --git a/mall-cloud-native/src/main/java/org/mall/catalogservice/web/HomeController.java b/mall-catalog/src/main/java/org/mall/catalogservice/web/HomeController.java similarity index 100% rename from mall-cloud-native/src/main/java/org/mall/catalogservice/web/HomeController.java rename to mall-catalog/src/main/java/org/mall/catalogservice/web/HomeController.java diff --git a/mall-cloud-native/src/main/resources/application.yml b/mall-catalog/src/main/resources/application.yml similarity index 100% rename from mall-cloud-native/src/main/resources/application.yml rename to mall-catalog/src/main/resources/application.yml diff --git a/mall-cloud-native/src/test/java/org/mall/catalogservice/ApplicationTests.java b/mall-catalog/src/test/java/org/mall/catalogservice/ApplicationTests.java similarity index 100% rename from mall-cloud-native/src/test/java/org/mall/catalogservice/ApplicationTests.java rename to mall-catalog/src/test/java/org/mall/catalogservice/ApplicationTests.java diff --git a/mall-cloud-native/src/test/java/org/mall/catalogservice/domain/BookValidationTests.java b/mall-catalog/src/test/java/org/mall/catalogservice/domain/BookValidationTests.java similarity index 100% rename from mall-cloud-native/src/test/java/org/mall/catalogservice/domain/BookValidationTests.java rename to mall-catalog/src/test/java/org/mall/catalogservice/domain/BookValidationTests.java diff --git a/mall-cloud-native/src/test/java/org/mall/catalogservice/web/BookControllerMvcTests.java b/mall-catalog/src/test/java/org/mall/catalogservice/web/BookControllerMvcTests.java similarity index 100% rename from mall-cloud-native/src/test/java/org/mall/catalogservice/web/BookControllerMvcTests.java rename to mall-catalog/src/test/java/org/mall/catalogservice/web/BookControllerMvcTests.java diff --git a/mall-cloud-native/src/test/java/org/mall/catalogservice/web/BookJsonTests.java b/mall-catalog/src/test/java/org/mall/catalogservice/web/BookJsonTests.java similarity index 100% rename from mall-cloud-native/src/test/java/org/mall/catalogservice/web/BookJsonTests.java rename to mall-catalog/src/test/java/org/mall/catalogservice/web/BookJsonTests.java diff --git a/settings.gradle b/settings.gradle index 260339d..0265ce0 100644 --- a/settings.gradle +++ b/settings.gradle @@ -5,6 +5,5 @@ include 'mall-crosscut' include 'mall-express' include 'mall-domain' include 'mall-data' -include 'mall-cloud-native' -include 'mall-config' - +include 'mall-catalog' +include 'mall-config' \ No newline at end of file