File tree Expand file tree Collapse file tree
commerce-api/src/main/java/com/loopers/domain/ranking
commerce-streamer/src/main/java/com/loopers/domain/ranking Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -17,16 +17,4 @@ private RankingKey() {
1717 public static String daily (LocalDate date ) {
1818 return KEY_PREFIX + date .format (DATE_FORMATTER );
1919 }
20-
21- public static String today () {
22- return daily (LocalDate .now ());
23- }
24-
25- public static String fromDateString (String dateString ) {
26- return KEY_PREFIX + dateString ;
27- }
28-
29- public static LocalDate parseDate (String dateString ) {
30- return LocalDate .parse (dateString , DATE_FORMATTER );
31- }
3220}
Original file line number Diff line number Diff line change @@ -17,32 +17,4 @@ private RankingKey() {
1717 public static String daily (LocalDate date ) {
1818 return KEY_PREFIX + date .format (DATE_FORMATTER );
1919 }
20-
21- /**
22- * 오늘 랭킹 키 생성
23- */
24- public static String today () {
25- return daily (LocalDate .now ());
26- }
27-
28- /**
29- * 어제 랭킹 키 생성
30- */
31- public static String yesterday () {
32- return daily (LocalDate .now ().minusDays (1 ));
33- }
34-
35- /**
36- * 날짜 문자열(yyyyMMdd)로부터 키 생성
37- */
38- public static String fromDateString (String dateString ) {
39- return KEY_PREFIX + dateString ;
40- }
41-
42- /**
43- * 키에서 날짜 추출
44- */
45- public static String extractDate (String key ) {
46- return key .replace (KEY_PREFIX , "" );
47- }
4820}
You can’t perform that action at this time.
0 commit comments