Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,6 @@ dependencies {
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'

// KAFKA
implementation 'org.springframework.kafka:spring-kafka'

// Firebase
implementation 'com.google.firebase:firebase-admin:6.8.1'
implementation group: 'com.squareup.okhttp3', name: 'okhttp', version: '4.2.2'
Expand Down
76 changes: 0 additions & 76 deletions src/main/java/com/inglo/giggle/core/config/KafkaConfig.java

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ public void sendPostMethod(String url, String token, JSONObject jsonObject) {
.body(jsonObject)
.retrieve()
.onStatus(HttpStatusCode::is4xxClientError, (request, response) -> {
log.error(response.getStatusText());
log.error(response.toString());
log.error(response.getBody().toString());
throw new CommonException(ErrorCode.INVALID_ARGUMENT);
})
.onStatus(HttpStatusCode::is5xxServerError, (request, response) -> {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
package com.inglo.giggle.notification.application.controller.consumer;

import com.inglo.giggle.notification.application.dto.request.NotificationRequestDto;
import com.inglo.giggle.notification.application.usecase.SendNotificationUseCase;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequiredArgsConstructor
@RequestMapping("/v1")
public class NotificationCommandV1Controller {

private final SendNotificationUseCase sendNotificationUseCase;

@PostMapping("/notification")
public void sendNotification(
@RequestBody NotificationRequestDto notificationRequestDto
) {
sendNotificationUseCase.execute(
notificationRequestDto
);
}

}

This file was deleted.