-
Notifications
You must be signed in to change notification settings - Fork 6
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 : 전화번호 libphonenumber 적용 #328
Conversation
|
||
/** 01000000000 format */ | ||
public String getNaverSmsToNumber() throws NumberParseException { | ||
String nationalFormat = this.getNationalFormat(); | ||
return nationalFormat.replaceAll("-", ""); | ||
} |
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.
@cofls6581 채린이는 vo 받아서 이걸로 얻어오면 될듯
user.getProfile().getPhoneNumberVo(). getNaverSmsToNumber();
같이 뎁스 너무 길어지면
user 엔티티에
user.getNaverSmsToNumber() 메소드 만드세용
이렇게 뎁스 쭐이는거 용어가있는데 까먹었넴
Kudos, SonarCloud Quality Gate passed! 0 Bugs |
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.
LGTM
개요
작업사항
카카오톡에서 넘겨주는 전화번호 형식은 libphonenumber 패키지를 사용한 형식입니다
국제전화번호횽식
공식 문서에도 위 모듈 참고하라고 적혀있더라고요
https://github.com/google/libphonenumber
PhoneNumberVo 만들었고
해당 vo로 리턴하면 JsonValue로 010-xxxx-xxxx 형식으로 내려줍니다.
변경로직