Skip to content

Commit 3665c78

Browse files
committed
feat(VolunteerReviewRequestEvent): 봉사 후기 요청 이벤트 추가
1 parent eb9901c commit 3665c78

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
package com.somemore.facade.event;
2+
3+
import com.fasterxml.jackson.annotation.JsonCreator;
4+
import com.fasterxml.jackson.annotation.JsonProperty;
5+
import com.somemore.global.common.event.ServerEvent;
6+
import com.somemore.global.common.event.ServerEventType;
7+
import com.somemore.notification.domain.NotificationSubType;
8+
import lombok.Getter;
9+
import lombok.experimental.SuperBuilder;
10+
11+
import java.time.LocalDateTime;
12+
import java.util.UUID;
13+
14+
@Getter
15+
@SuperBuilder
16+
public class VolunteerReviewRequestEvent extends ServerEvent<NotificationSubType> {
17+
private final UUID volunteerId;
18+
private final Long volunteerApplyId;
19+
private final UUID centerId;
20+
private final Long recruitBoardId;
21+
22+
@JsonCreator
23+
public VolunteerReviewRequestEvent(
24+
@JsonProperty("receiverId") UUID volunteerId,
25+
@JsonProperty("volunteerApplyId") Long volunteerApplyId,
26+
@JsonProperty("centerId") UUID centerId,
27+
@JsonProperty("recruitBoardId") Long recruitBoardId
28+
) {
29+
super(ServerEventType.NOTIFICATION, NotificationSubType.VOLUNTEER_APPLY_STATUS_CHANGE, LocalDateTime.now());
30+
this.volunteerId = volunteerId;
31+
this.volunteerApplyId = volunteerApplyId;
32+
this.centerId = centerId;
33+
this.recruitBoardId = recruitBoardId;
34+
}
35+
}

0 commit comments

Comments
 (0)