From 15829d88e42d91221a1e11d8b091901b35476659 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=A7=84=EC=A3=BC=EC=9B=90?= Date: Wed, 30 Oct 2024 14:57:11 +0900 Subject: [PATCH 1/5] S11P12A607 feat: remake notification module --- backend/.idea/compiler.xml | 4 +++- backend/.idea/gradle.xml | 8 ++++++++ backend/.idea/misc.xml | 1 + backend/notification-service/build.gradle.kts | 8 -------- backend/notification-service/settings.gradle.kts | 2 +- .../notification/controller/NotificationController.kt | 4 ---- .../notification/dto/request/NotificationSaveRequest.kt | 4 ---- .../notification/dto/response/NotificationSaveResponse.kt | 4 ---- .../framecheckmate/notification/entity/Notification.kt | 4 ---- .../notification/repository/NotificationRepository.kt | 4 ---- .../notification/service/NotificationService.kt | 4 ---- .../NotificationServiceApplication.kt} | 6 +++--- .../src/main/resources/application.properties | 2 +- .../NotificationServiceApplicationTests.kt} | 4 ++-- 14 files changed, 19 insertions(+), 40 deletions(-) delete mode 100644 backend/notification-service/src/main/kotlin/com/framecheckmate/notification/controller/NotificationController.kt delete mode 100644 backend/notification-service/src/main/kotlin/com/framecheckmate/notification/dto/request/NotificationSaveRequest.kt delete mode 100644 backend/notification-service/src/main/kotlin/com/framecheckmate/notification/dto/response/NotificationSaveResponse.kt delete mode 100644 backend/notification-service/src/main/kotlin/com/framecheckmate/notification/entity/Notification.kt delete mode 100644 backend/notification-service/src/main/kotlin/com/framecheckmate/notification/repository/NotificationRepository.kt delete mode 100644 backend/notification-service/src/main/kotlin/com/framecheckmate/notification/service/NotificationService.kt rename backend/notification-service/src/main/kotlin/com/framecheckmate/{notification/NotificationApplication.kt => notificationservice/NotificationServiceApplication.kt} (55%) rename backend/notification-service/src/test/kotlin/com/framecheckmate/{notification/NotificationApplicationTests.kt => notificationservice/NotificationServiceApplicationTests.kt} (63%) diff --git a/backend/.idea/compiler.xml b/backend/.idea/compiler.xml index abcf9f3a..11e27daa 100644 --- a/backend/.idea/compiler.xml +++ b/backend/.idea/compiler.xml @@ -7,11 +7,13 @@ - + + + \ No newline at end of file diff --git a/backend/.idea/gradle.xml b/backend/.idea/gradle.xml index 3ed0f4e4..67cb8ab8 100644 --- a/backend/.idea/gradle.xml +++ b/backend/.idea/gradle.xml @@ -11,6 +11,14 @@ + + + \ No newline at end of file diff --git a/backend/.idea/misc.xml b/backend/.idea/misc.xml index afea9a3f..46687a74 100644 --- a/backend/.idea/misc.xml +++ b/backend/.idea/misc.xml @@ -3,6 +3,7 @@ + diff --git a/backend/notification-service/build.gradle.kts b/backend/notification-service/build.gradle.kts index 1a5ccea8..80c81e31 100644 --- a/backend/notification-service/build.gradle.kts +++ b/backend/notification-service/build.gradle.kts @@ -3,7 +3,6 @@ plugins { kotlin("plugin.spring") version "1.9.25" id("org.springframework.boot") version "3.3.5" id("io.spring.dependency-management") version "1.1.6" - kotlin("plugin.jpa") version "1.9.25" } group = "com.framecheckmate" @@ -26,7 +25,6 @@ repositories { } dependencies { - implementation("org.springframework.boot:spring-boot-starter-data-jpa") implementation("org.springframework.boot:spring-boot-starter-web") implementation("com.fasterxml.jackson.module:jackson-module-kotlin") implementation("org.jetbrains.kotlin:kotlin-reflect") @@ -43,12 +41,6 @@ kotlin { } } -allOpen { - annotation("jakarta.persistence.Entity") - annotation("jakarta.persistence.MappedSuperclass") - annotation("jakarta.persistence.Embeddable") -} - tasks.withType { useJUnitPlatform() } diff --git a/backend/notification-service/settings.gradle.kts b/backend/notification-service/settings.gradle.kts index c4a90f2e..3cc0e57a 100644 --- a/backend/notification-service/settings.gradle.kts +++ b/backend/notification-service/settings.gradle.kts @@ -1 +1 @@ -rootProject.name = "notification" +rootProject.name = "notification-service" diff --git a/backend/notification-service/src/main/kotlin/com/framecheckmate/notification/controller/NotificationController.kt b/backend/notification-service/src/main/kotlin/com/framecheckmate/notification/controller/NotificationController.kt deleted file mode 100644 index fde668e1..00000000 --- a/backend/notification-service/src/main/kotlin/com/framecheckmate/notification/controller/NotificationController.kt +++ /dev/null @@ -1,4 +0,0 @@ -package com.framecheckmate.notification.controller - -class NotificationController { -} \ No newline at end of file diff --git a/backend/notification-service/src/main/kotlin/com/framecheckmate/notification/dto/request/NotificationSaveRequest.kt b/backend/notification-service/src/main/kotlin/com/framecheckmate/notification/dto/request/NotificationSaveRequest.kt deleted file mode 100644 index e7c16a5b..00000000 --- a/backend/notification-service/src/main/kotlin/com/framecheckmate/notification/dto/request/NotificationSaveRequest.kt +++ /dev/null @@ -1,4 +0,0 @@ -package com.framecheckmate.notification.dto.request - -class NotificationSaveRequest { -} \ No newline at end of file diff --git a/backend/notification-service/src/main/kotlin/com/framecheckmate/notification/dto/response/NotificationSaveResponse.kt b/backend/notification-service/src/main/kotlin/com/framecheckmate/notification/dto/response/NotificationSaveResponse.kt deleted file mode 100644 index ba182060..00000000 --- a/backend/notification-service/src/main/kotlin/com/framecheckmate/notification/dto/response/NotificationSaveResponse.kt +++ /dev/null @@ -1,4 +0,0 @@ -package com.framecheckmate.notification.dto.response - -class NotificationSaveResponse { -} \ No newline at end of file diff --git a/backend/notification-service/src/main/kotlin/com/framecheckmate/notification/entity/Notification.kt b/backend/notification-service/src/main/kotlin/com/framecheckmate/notification/entity/Notification.kt deleted file mode 100644 index 6f66a0d1..00000000 --- a/backend/notification-service/src/main/kotlin/com/framecheckmate/notification/entity/Notification.kt +++ /dev/null @@ -1,4 +0,0 @@ -package com.framecheckmate.notification.entity - -class Notification { -} \ No newline at end of file diff --git a/backend/notification-service/src/main/kotlin/com/framecheckmate/notification/repository/NotificationRepository.kt b/backend/notification-service/src/main/kotlin/com/framecheckmate/notification/repository/NotificationRepository.kt deleted file mode 100644 index 285fd2fc..00000000 --- a/backend/notification-service/src/main/kotlin/com/framecheckmate/notification/repository/NotificationRepository.kt +++ /dev/null @@ -1,4 +0,0 @@ -package com.framecheckmate.notification.repository - -interface NotificationRepository { -} \ No newline at end of file diff --git a/backend/notification-service/src/main/kotlin/com/framecheckmate/notification/service/NotificationService.kt b/backend/notification-service/src/main/kotlin/com/framecheckmate/notification/service/NotificationService.kt deleted file mode 100644 index c2d984f7..00000000 --- a/backend/notification-service/src/main/kotlin/com/framecheckmate/notification/service/NotificationService.kt +++ /dev/null @@ -1,4 +0,0 @@ -package com.framecheckmate.notification.service - -class NotificationService { -} \ No newline at end of file diff --git a/backend/notification-service/src/main/kotlin/com/framecheckmate/notification/NotificationApplication.kt b/backend/notification-service/src/main/kotlin/com/framecheckmate/notificationservice/NotificationServiceApplication.kt similarity index 55% rename from backend/notification-service/src/main/kotlin/com/framecheckmate/notification/NotificationApplication.kt rename to backend/notification-service/src/main/kotlin/com/framecheckmate/notificationservice/NotificationServiceApplication.kt index d87dc0ed..fb8e5ba7 100644 --- a/backend/notification-service/src/main/kotlin/com/framecheckmate/notification/NotificationApplication.kt +++ b/backend/notification-service/src/main/kotlin/com/framecheckmate/notificationservice/NotificationServiceApplication.kt @@ -1,11 +1,11 @@ -package com.framecheckmate.notification +package com.framecheckmate.notificationservice import org.springframework.boot.autoconfigure.SpringBootApplication import org.springframework.boot.runApplication @SpringBootApplication -class NotificationApplication +class NotificationServiceApplication fun main(args: Array) { - runApplication(*args) + runApplication(*args) } diff --git a/backend/notification-service/src/main/resources/application.properties b/backend/notification-service/src/main/resources/application.properties index 01501956..10e675da 100644 --- a/backend/notification-service/src/main/resources/application.properties +++ b/backend/notification-service/src/main/resources/application.properties @@ -1 +1 @@ -spring.application.name=notification +spring.application.name=notification-service diff --git a/backend/notification-service/src/test/kotlin/com/framecheckmate/notification/NotificationApplicationTests.kt b/backend/notification-service/src/test/kotlin/com/framecheckmate/notificationservice/NotificationServiceApplicationTests.kt similarity index 63% rename from backend/notification-service/src/test/kotlin/com/framecheckmate/notification/NotificationApplicationTests.kt rename to backend/notification-service/src/test/kotlin/com/framecheckmate/notificationservice/NotificationServiceApplicationTests.kt index e4766687..ce0f3a8b 100644 --- a/backend/notification-service/src/test/kotlin/com/framecheckmate/notification/NotificationApplicationTests.kt +++ b/backend/notification-service/src/test/kotlin/com/framecheckmate/notificationservice/NotificationServiceApplicationTests.kt @@ -1,10 +1,10 @@ -package com.framecheckmate.notification +package com.framecheckmate.notificationservice import org.junit.jupiter.api.Test import org.springframework.boot.test.context.SpringBootTest @SpringBootTest -class NotificationApplicationTests { +class NotificationServiceApplicationTests { @Test fun contextLoads() { From c0b1d408337f1f210c60c5c5084eda5a4549cee9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=A7=84=EC=A3=BC=EC=9B=90?= Date: Wed, 30 Oct 2024 14:59:20 +0900 Subject: [PATCH 2/5] S11P12A607 feat: remake notification module --- backend/.idea/compiler.xml | 2 -- 1 file changed, 2 deletions(-) diff --git a/backend/.idea/compiler.xml b/backend/.idea/compiler.xml index 11e27daa..69aaa0a6 100644 --- a/backend/.idea/compiler.xml +++ b/backend/.idea/compiler.xml @@ -12,8 +12,6 @@ - - \ No newline at end of file From ffcce57e0dac4b23321e8a1ea5e32a70780e0f40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=A7=84=EC=A3=BC=EC=9B=90?= Date: Wed, 30 Oct 2024 15:07:10 +0900 Subject: [PATCH 3/5] S11P12A607 feat: remake notification module --- backend/.idea/compiler.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/.idea/compiler.xml b/backend/.idea/compiler.xml index 69aaa0a6..c3434737 100644 --- a/backend/.idea/compiler.xml +++ b/backend/.idea/compiler.xml @@ -12,6 +12,6 @@ - + lear \ No newline at end of file From 21ba4d6edf40a83573388f0822163d188dbd6562 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=A7=84=EC=A3=BC=EC=9B=90?= Date: Wed, 30 Oct 2024 15:08:28 +0900 Subject: [PATCH 4/5] S11P12A607 feat: remake notification module --- backend/.idea/compiler.xml | 1 - 1 file changed, 1 deletion(-) diff --git a/backend/.idea/compiler.xml b/backend/.idea/compiler.xml index c3434737..b978ff67 100644 --- a/backend/.idea/compiler.xml +++ b/backend/.idea/compiler.xml @@ -11,7 +11,6 @@ - lear \ No newline at end of file From d8cb7da7e01db78700154ea847b8125ba8d52836 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=A7=84=EC=A3=BC=EC=9B=90?= Date: Wed, 30 Oct 2024 15:09:08 +0900 Subject: [PATCH 5/5] S11P12A607 feat: remake notification module --- backend/.idea/compiler.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/backend/.idea/compiler.xml b/backend/.idea/compiler.xml index b978ff67..c3434737 100644 --- a/backend/.idea/compiler.xml +++ b/backend/.idea/compiler.xml @@ -11,6 +11,7 @@ + lear \ No newline at end of file