feat(point): 포인트 적립, 결제 취소 시 적립금 취소 로직 구현, 결제 취소 5분 제한 로직 추가#64
Merged
feat(point): 포인트 적립, 결제 취소 시 적립금 취소 로직 구현, 결제 취소 5분 제한 로직 추가#64
Conversation
dnjsals45
approved these changes
Oct 18, 2025
Collaborator
dnjsals45
left a comment
There was a problem hiding this comment.
혹시 현재 기능에서 포인트 사용은 없고, 적립 및 취소 시 기존으로 복구 기능만 있는 것 같은데 맞을까요? 제가 조금 이해를 못한 것 같아서 여쭤봅니다!
| @Param("deletedBy") Long deletedBy | ||
| ); | ||
|
|
||
| @SuppressWarnings("NullableProblems") |
Collaborator
There was a problem hiding this comment.
이 경고 무시 어노테이션은 어떤 문제떄문에 작성해주신걸까요?
Collaborator
Author
There was a problem hiding this comment.
order,user가 null 이 발생할 수 있다고 경고가 떠서 제외 시켰습니다!
결제 완료 된 경우는 order, user이 null 발생 할 수 없다고 생각하여 제외 시켰습니다.
Removed point earning and review configurations from application.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
feat(point): 포인트 적립, 결제 취소 시 적립금 취소 로직 구현
주요 동작
설계 의도 및 고민
초기에는
주문 생성혹은결제 서비스내부에서 직접 포인트 적립 코드를 호출하는 방법을 고려했습니다.하지만 향후 포인트 충전, 이벤트 참여 보상, 관리자 수동 적립 등 다양한 케이스가 생길 것을 예상했습니다.
이러한 확장성을 고려했을 때,
AOP를 통해 핵심 비즈니스 로직과 부가 기능(포인트 적립)을 분리하는 것이 더 적합하다고 판단했습니다.
선택 이유