-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Formatter 로직 수정 및 Deprecated 기능 제거 (#493)
* feat: MoneyFormatter 추가 * feat: 학기 워딩을 포매터로 분리 * feat: 학기 포매터 리팩토링 * refactor: PhoneFormatter 로직 개선 * refactor: nullable 추가 * refactor: PhoneFormatter 적용 * feat: deprecated 기능 제거 * feat: 디스코드 회원정보 수정 API 제거 * feat: 디스코드 합류하기 커맨드 관련 기능 제거 * refactor: 금액 포매터 로직 개선
- Loading branch information
Showing
18 changed files
with
38 additions
and
219 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
43 changes: 0 additions & 43 deletions
43
src/main/java/com/gdschongik/gdsc/domain/discord/application/handler/JoinCommandHandler.java
This file was deleted.
Oops, something went wrong.
24 changes: 0 additions & 24 deletions
24
...ain/java/com/gdschongik/gdsc/domain/discord/application/listener/JoinCommandListener.java
This file was deleted.
Oops, something went wrong.
8 changes: 0 additions & 8 deletions
8
src/main/java/com/gdschongik/gdsc/domain/discord/dto/response/DiscordNicknameResponse.java
This file was deleted.
Oops, something went wrong.
This file contains 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
This file contains 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
This file contains 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
This file contains 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
52 changes: 0 additions & 52 deletions
52
src/main/java/com/gdschongik/gdsc/domain/member/dto/response/MemberInfoResponse.java
This file was deleted.
Oops, something went wrong.
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
18 changes: 18 additions & 0 deletions
18
src/main/java/com/gdschongik/gdsc/global/util/formatter/MoneyFormatter.java
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package com.gdschongik.gdsc.global.util.formatter; | ||
|
||
import com.gdschongik.gdsc.domain.common.vo.Money; | ||
import java.text.NumberFormat; | ||
import java.util.Locale; | ||
import lombok.AccessLevel; | ||
import lombok.NoArgsConstructor; | ||
import lombok.NonNull; | ||
|
||
@NoArgsConstructor(access = AccessLevel.PRIVATE) | ||
public class MoneyFormatter { | ||
|
||
public static final NumberFormat KOREA_NUMBER_FORMAT = NumberFormat.getNumberInstance(Locale.KOREA); | ||
|
||
public static String format(@NonNull Money money) { | ||
return KOREA_NUMBER_FORMAT.format(money.getAmount()) + "원"; | ||
} | ||
} |
This file contains 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
Oops, something went wrong.