From b5151ef06416ffe33585e8fc65cf267ebbdc6855 Mon Sep 17 00:00:00 2001 From: DDonghyeo Date: Thu, 9 May 2024 16:36:27 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=84style=20:=20Controller=20=EB=AF=B8?= =?UTF-8?q?=EC=82=AC=EC=9A=A9=20=ED=95=84=EB=93=9C=20=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../waither/notiservice/api/NotificationController.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/noti-service/src/main/java/com/waither/notiservice/api/NotificationController.java b/noti-service/src/main/java/com/waither/notiservice/api/NotificationController.java index c4e09f7f..a8419997 100644 --- a/noti-service/src/main/java/com/waither/notiservice/api/NotificationController.java +++ b/noti-service/src/main/java/com/waither/notiservice/api/NotificationController.java @@ -1,17 +1,15 @@ package com.waither.notiservice.api; -import com.waither.notiservice.api.response.NotificationResponse; import com.waither.notiservice.api.request.LocationDto; import com.waither.notiservice.global.response.ApiResponse; import com.waither.notiservice.service.NotificationService; +import com.waither.notiservice.utils.RedisUtils; import io.swagger.v3.oas.annotations.Operation; import jakarta.validation.Valid; import lombok.RequiredArgsConstructor; import org.springframework.http.HttpStatus; import org.springframework.web.bind.annotation.*; -import java.util.List; - @RequiredArgsConstructor @RequestMapping("/api/v1/noti") @RestController @@ -19,6 +17,8 @@ public class NotificationController { private final NotificationService notificationService; + private final RedisUtils redisUtils; + @Operation(summary = "Get notification", description = "알림 목록 조회하기") @GetMapping("") public ApiResponse getNotifications(Long userId) { @@ -43,4 +43,5 @@ public void sendGoOutAlarm(Long userId) { public void checkCurrentAlarm(@RequestBody @Valid LocationDto locationDto) { notificationService.checkCurrentAlarm(locationDto); } + }