Skip to content

Commit

Permalink
💄style : Controller 미사용 필드 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
DDonghyeo committed May 9, 2024
1 parent ba64166 commit b5151ef
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
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
public class NotificationController {

private final NotificationService notificationService;

private final RedisUtils redisUtils;

@Operation(summary = "Get notification", description = "알림 목록 조회하기")
@GetMapping("")
public ApiResponse<?> getNotifications(Long userId) {
Expand All @@ -43,4 +43,5 @@ public void sendGoOutAlarm(Long userId) {
public void checkCurrentAlarm(@RequestBody @Valid LocationDto locationDto) {
notificationService.checkCurrentAlarm(locationDto);
}

}

0 comments on commit b5151ef

Please sign in to comment.