-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore: 공통 상수 enum 생성 * refactor: 공통 상수 값 사용하도록 변경 * refactor: 공통 상수 관심사에 맞도록 분리
- Loading branch information
Showing
5 changed files
with
57 additions
and
18 deletions.
There are no files selected for viewing
15 changes: 15 additions & 0 deletions
15
src/main/java/com/depromeet/global/common/constants/EnvironmentConstants.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,15 @@ | ||
package com.depromeet.global.common.constants; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Getter; | ||
|
||
@Getter | ||
@AllArgsConstructor | ||
public enum EnvironmentConstants { | ||
PROD("prod"), | ||
DEV("dev"), | ||
LOCAL("local"), | ||
; | ||
|
||
private String value; | ||
} |
19 changes: 19 additions & 0 deletions
19
src/main/java/com/depromeet/global/common/constants/UrlConstants.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,19 @@ | ||
package com.depromeet.global.common.constants; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Getter; | ||
|
||
@Getter | ||
@AllArgsConstructor | ||
public enum UrlConstants { | ||
PROD_SERVER_URL("https://api.10mm.today"), | ||
DEV_SERVER_URL("https://dev-api.10mm.today"), | ||
LOCAL_SERVER_URL("http://localhost:8080"), | ||
|
||
PROD_DOMAIN_URL("https://10mm.today"), | ||
DEV_DOMAIN_URL("https://dev.10mm.today"), | ||
LOCAL_DOMAIN_URL("http://localhost:3000"), | ||
; | ||
|
||
private String value; | ||
} |
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