[FEAT] SMS 인증 코드 발송 이벤트 구현 #76
Merged
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.
목적
SMS 인증을 위한 Kafka 이벤트 발행 기능을 구현합니다.
Notification Service에서 SMS 발송을 처리할 수 있도록 이벤트를 제공합니다.
Kafka 토픽
1.
sms-confirm-request발행 시점: SMS 인증 코드 발급 시
{ "phoneNumber": "01012345678", "code": "123456" }2.
phone-number-verified발행 시점: SMS 인증 완료 시
{ "userId": "user-id-123", "phoneNumber": "01012345678" }API 엔드포인트
/api/v1/auth/sms/{userId}/{phoneNumber}/api/v1/auth/sms/{userId}/{phoneNumber}?code=123456/api/v1/auth/sms/{userId}/{phoneNumber}인증 플로우
신규 파일
SmsConfirmRequest.javaPhoneNumberVerifiedEvent.javaSmsConfirmRequestEventPub.javaPhoneNumberVerifiedEventPub.javaSmsCodeGenerator.javaSmsConfirmService.javaSmsConfirmServiceImpl.javaSmsConfirmController.javaRedis 키 구조
sms:{userId}:{phoneNumber}테스트
관련 이슈
Closes #75