From 658588a2e0c6372a23a367268f51ac849017d4d9 Mon Sep 17 00:00:00 2001 From: ahnyunki Date: Wed, 27 Mar 2024 22:04:22 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20convertToOrderType=20=EB=A9=94?= =?UTF-8?q?=EC=86=8C=EB=93=9C=20=EC=9D=B4=EB=A6=84=20=EB=B3=80=EA=B2=BD=20?= =?UTF-8?q?(#40)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../jisungin/api/talkroom/request/TalkRoomSearchRequest.java | 2 +- src/main/java/com/jisungin/application/OrderType.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/jisungin/api/talkroom/request/TalkRoomSearchRequest.java b/src/main/java/com/jisungin/api/talkroom/request/TalkRoomSearchRequest.java index 1aa6d45..52b4fc2 100644 --- a/src/main/java/com/jisungin/api/talkroom/request/TalkRoomSearchRequest.java +++ b/src/main/java/com/jisungin/api/talkroom/request/TalkRoomSearchRequest.java @@ -33,7 +33,7 @@ public TalkRoomSearchServiceRequest toService() { .page(page) .size(size) .search(search) - .orderType(OrderType.conversionOrderType(order)) + .orderType(OrderType.convertToOrderType(order)) .build(); } diff --git a/src/main/java/com/jisungin/application/OrderType.java b/src/main/java/com/jisungin/application/OrderType.java index 9978683..013dca5 100644 --- a/src/main/java/com/jisungin/application/OrderType.java +++ b/src/main/java/com/jisungin/application/OrderType.java @@ -10,7 +10,7 @@ public enum OrderType { private final String text; - public static OrderType conversionOrderType(String order) { + public static OrderType convertToOrderType(String order) { return switch (order) { case "recent" -> RECENT; case "recommend" -> RECOMMEND;