Skip to content

Commit

Permalink
알림 response ID 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
gkfktkrh153 committed Mar 26, 2024
1 parent e9cb1b7 commit 1447eff
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,20 @@
@NoArgsConstructor
public class NotificationResponse {
private Long itemId;
private Long notificationId;
private String message;

@Builder
private NotificationResponse(Long itemId, String message) {
private NotificationResponse(Long itemId, Long notificationId, String message) {
this.itemId = itemId;
this.notificationId = notificationId;
this.message = message;
}

public static NotificationResponse of(Notification notification){
return NotificationResponse.builder()
.itemId(notification.getItemId())
.notificationId(notification.getId())
.message(notification.getMessage()).build();
}
}

0 comments on commit 1447eff

Please sign in to comment.