diff --git a/src/main/java/org/sopt/makers/operation/controller/web/AlarmController.java b/src/main/java/org/sopt/makers/operation/controller/web/AlarmController.java index af0c5f59..3b3b4948 100644 --- a/src/main/java/org/sopt/makers/operation/controller/web/AlarmController.java +++ b/src/main/java/org/sopt/makers/operation/controller/web/AlarmController.java @@ -2,6 +2,7 @@ import io.swagger.annotations.ApiOperation; import lombok.RequiredArgsConstructor; + import org.sopt.makers.operation.common.ApiResponse; import org.sopt.makers.operation.dto.alarm.AlarmSendRequestDTO; import org.sopt.makers.operation.service.AlarmService; @@ -33,14 +34,14 @@ @RequiredArgsConstructor @RequestMapping("/api/v1/alarms") public class AlarmController { - private final AlarmService alarmService; + private final AlarmService alarmService; - @ApiOperation(value = "알림 전송") - @PostMapping("/send") - public ResponseEntity sendAlarm(@RequestBody AlarmSendRequestDTO requestDTO) { - alarmService.sendAdmin(requestDTO); - return ResponseEntity.ok(ApiResponse.success(SUCCESS_SEND_ALARM.getMessage())); - } + @ApiOperation(value = "알림 전송") + @PostMapping("/send") + public ResponseEntity sendAlarm(@RequestBody AlarmSendRequestDTO requestDTO) { + alarmService.sendAdmin(requestDTO); + return ResponseEntity.ok(ApiResponse.success(SUCCESS_SEND_ALARM.getMessage())); + } @ApiOperation("알림 생성") @PostMapping