-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #66 from AdultOfNineteen/refactor/issue-65
μμ λ±μ§ κ³μ° λ‘μ§ μμ
- Loading branch information
Showing
8 changed files
with
103 additions
and
70 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
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
26 changes: 26 additions & 0 deletions
26
Winey-Common/src/main/java/com/example/wineycommon/constants/WineyStatic.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 |
---|---|---|
@@ -1,9 +1,35 @@ | ||
package com.example.wineycommon.constants; | ||
|
||
import org.springframework.data.redis.connection.RedisServer; | ||
|
||
public class WineyStatic { | ||
public static final String BEARER = "Bearer "; | ||
|
||
public static final String AUTHORIZATION_HEADER = "X-AUTH-TOKEN"; | ||
|
||
public static final String REFRESH_TOKEN_HEADER = "X-REFRESH-TOKEN"; | ||
|
||
public static final Integer YOUNG_SOMMELIER_INDEX = 0; | ||
|
||
public static final Integer INTERMEDIATE_SOMMELIER_INDEX = 1; | ||
|
||
public static final Integer ADVANCED_SOMMELIER_INDEX = 2; | ||
|
||
public static final Integer MASTER_SOMMELIER_INDEX = 3; | ||
|
||
public static final Integer SMELL_ENTHUSIAST_INDEX = 4; | ||
|
||
public static final Integer FAVORITE_WINE_INDEX = 5; | ||
|
||
public static final Integer GRAPE_LOVER_INDEX = 6; | ||
|
||
public static final Integer ENJOYMENT_INDEX = 7; | ||
|
||
public static final Integer WINE_EXCITEMENT_INDEX = 8; | ||
|
||
public static final Integer WINE_ADDICT_INDEX = 9; | ||
|
||
public static final String TASTE_DISCOVERY = "TASTE_DISCOVERY"; | ||
|
||
public static final Integer NON_ALCOHOLIC_INDEX = 11; | ||
} |
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
5 changes: 5 additions & 0 deletions
5
Winey-Domain/src/main/java/com/example/wineydomain/badge/repository/WineBadgeRepository.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 |
---|---|---|
@@ -1,7 +1,12 @@ | ||
package com.example.wineydomain.badge.repository; | ||
|
||
import java.util.List; | ||
|
||
import com.example.wineydomain.badge.entity.WineBadge; | ||
import org.springframework.data.jpa.repository.JpaRepository; | ||
|
||
public interface WineBadgeRepository extends JpaRepository<WineBadge, Long>, WineBadgeCustomRepository { | ||
List<WineBadge> findByOrderByIdAsc(); | ||
|
||
WineBadge findByBadge(String tasteDiscovery); | ||
} |