-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor: MemberAssociateEvent
네이밍 변경
#837
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package com.gdschongik.gdsc.domain.member.application.listener; | ||
|
||
import com.gdschongik.gdsc.domain.member.application.handler.AssociateRequirementUpdatedEventHandler; | ||
import com.gdschongik.gdsc.domain.member.domain.AssociateRequirementUpdatedEvent; | ||
import lombok.RequiredArgsConstructor; | ||
import org.springframework.stereotype.Component; | ||
import org.springframework.transaction.event.TransactionPhase; | ||
import org.springframework.transaction.event.TransactionalEventListener; | ||
|
||
@Component | ||
@RequiredArgsConstructor | ||
public class AssociateRequirementUpdatedEventListener { | ||
|
||
private final AssociateRequirementUpdatedEventHandler associateRequirementUpdatedEventHandler; | ||
|
||
@TransactionalEventListener( | ||
phase = TransactionPhase.BEFORE_COMMIT, | ||
classes = AssociateRequirementUpdatedEvent.class) | ||
public void handleAssociateRequirementUpdatedEvent(AssociateRequirementUpdatedEvent event) { | ||
associateRequirementUpdatedEventHandler.advanceToAssociate(event); | ||
} | ||
} |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
package com.gdschongik.gdsc.domain.member.domain; | ||
|
||
public record AssociateRequirementUpdatedEvent(Long memberId) {} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Member prefix가 붙는게 좋을 것 같은데 어떻게 생각하시나요? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 좋아요 정회원 관련 이벤트들도 이미 다 붙어있으니 여기도 붙이는게 좋겠어요 |
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
클래스는 지정 안해줘도 될 것 같아요
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
그렇겠네요 제거할게요~