Skip to content

Commit 96cb8de

Browse files
authored
[fix] 알림 도메인 응답코드 수정 (#148)
* hotfix// 알림 도메인 기능 추가 및 수정 1. 대기열 만료 알림 구현 2. 알림 조회시 응답 메시지 수정 3. 알림 읽음 처리 컨트롤러 메서드 User 객체 추출 방법 수정 4. Notification 엔티티 컬럼이름 수정 5. api 경로 수정 * fix: NotificationController에서 유저ID 추출 방법 변경 (Long userId = httpRequestContext.getUserId(); 사용) * hotfix// 알림 컨트롤러 메서드 응답 코드 수정 204 : body 포함 안됨 200 : body 포함 ( 메세지 보임 )
1 parent 97b0ed1 commit 96cb8de

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

backend/src/main/java/com/back/api/notification/controller/NotificationController.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public ApiResponse<Void> markAsRead(
5959
Long userId = httpRequestContext.getUserId();
6060
notificationService.markAsRead(notificationId, userId);
6161

62-
return ApiResponse.noContent("개별 알림을 읽음 처리 하였습니다.");
62+
return ApiResponse.ok("개별 알림을 읽음 처리 하였습니다.",null);
6363
}
6464

6565
/**
@@ -70,6 +70,6 @@ public ApiResponse<Void> markAsRead(
7070
public ApiResponse<Void> markAllAsRead() {
7171
Long userId = httpRequestContext.getUserId();
7272
notificationService.markAllAsRead(userId);
73-
return ApiResponse.noContent("모든 알림을 읽음 처리 하였습니다.");
73+
return ApiResponse.ok("모든 알림을 읽음 처리 하였습니다.",null);
7474
}
7575
}

0 commit comments

Comments
 (0)