Skip to content

Commit 2c42ad6

Browse files
authored
Merge pull request #84 from zippick/develop
[DEPLOY] 재배포
2 parents 5a8a28a + e0b60da commit 2c42ad6

File tree

4 files changed

+6
-8
lines changed

4 files changed

+6
-8
lines changed

zippick/src/main/java/zippick/domain/notification/controller/NotificationController.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,14 @@ public ResponseEntity<SendNotificationResponse> sendNotification(
3232

3333
@GetMapping
3434
public ResponseEntity<ReadNotificationResponse> getNotifications(
35-
HttpServletRequest request,
36-
@RequestParam int offset) {
35+
HttpServletRequest request) {
3736

3837
Long memberId = (Long) request.getAttribute("memberId");
3938
if (memberId == null) {
4039
throw new IllegalStateException("memberId가 누락되었습니다.");
4140
}
4241

43-
ReadNotificationResponse response = notificationService.getNotifications(memberId, offset);
42+
ReadNotificationResponse response = notificationService.getNotifications(memberId);
4443
return ResponseEntity.ok(response);
4544
}
4645
}

zippick/src/main/java/zippick/domain/notification/mapper/NotificationMapper.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
public interface NotificationMapper {
1010
void insertNotification(NotificationDto notification);
1111

12-
List<NotificationDto> findNotificationsByMemberId(@Param("memberId") Long memberId,
13-
@Param("offset") int offset);
12+
List<NotificationDto> findNotificationsByMemberId(@Param("memberId") Long memberId);
1413

1514
}

zippick/src/main/java/zippick/domain/notification/service/NotificationService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
public interface NotificationService {
88
SendNotificationResponse sendNotification(Long memberId, NotificationRequest request);
99

10-
ReadNotificationResponse getNotifications(Long memberId, int offset);
10+
ReadNotificationResponse getNotifications(Long memberId);
1111

1212
}
1313

zippick/src/main/java/zippick/domain/notification/service/NotificationServiceImpl.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ public SendNotificationResponse sendNotification(Long memberId, NotificationRequ
4242

4343
@Override
4444
@Transactional(readOnly = true)
45-
public ReadNotificationResponse getNotifications(Long memberId, int offset) {
46-
List<NotificationDto> list = notificationMapper.findNotificationsByMemberId(memberId, offset);
45+
public ReadNotificationResponse getNotifications(Long memberId) {
46+
List<NotificationDto> list = notificationMapper.findNotificationsByMemberId(memberId);
4747
return new ReadNotificationResponse(list);
4848
}
4949

0 commit comments

Comments
 (0)