From 9cede3c193c1893a5686119e1dc4e50a967aed66 Mon Sep 17 00:00:00 2001 From: LeeJaehyung <540900@naver.com> Date: Fri, 9 Aug 2024 14:36:29 +0900 Subject: [PATCH] =?UTF-8?q?Fix:=20#113=20PictureRatio=20=EC=88=98=EC=A0=95?= =?UTF-8?q?(RATIO=5F3=5F2=20=3D=20=EC=84=B8=EB=A1=9C3,=EA=B0=80=EB=A1=9C2)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../responseexample/service/ResponseExampleService.java | 6 +++--- .../src/main/java/com/gt/genti/picture/PictureRatio.java | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/genti-api/src/main/java/com/gt/genti/responseexample/service/ResponseExampleService.java b/genti-api/src/main/java/com/gt/genti/responseexample/service/ResponseExampleService.java index c2698205..fb23322e 100644 --- a/genti-api/src/main/java/com/gt/genti/responseexample/service/ResponseExampleService.java +++ b/genti-api/src/main/java/com/gt/genti/responseexample/service/ResponseExampleService.java @@ -42,11 +42,11 @@ public List getAllResponseExamples() { Collections.shuffle(examples); - Optional firstMatchingRatio_3_2 = examples.stream() - .filter(example -> PictureRatio.RATIO_3_2.equals(example.getPicture().getPictureRatio())) + Optional firstMatchingRatio_2_3 = examples.stream() + .filter(example -> PictureRatio.RATIO_2_3.equals(example.getPicture().getPictureRatio())) .findFirst(); - firstMatchingRatio_3_2.ifPresent(matchingExample -> { + firstMatchingRatio_2_3.ifPresent(matchingExample -> { examples.remove(matchingExample); examples.add(0, matchingExample); }); diff --git a/genti-domain/src/main/java/com/gt/genti/picture/PictureRatio.java b/genti-domain/src/main/java/com/gt/genti/picture/PictureRatio.java index 1d35b49b..deb47b84 100644 --- a/genti-domain/src/main/java/com/gt/genti/picture/PictureRatio.java +++ b/genti-domain/src/main/java/com/gt/genti/picture/PictureRatio.java @@ -10,9 +10,9 @@ @Getter @RequiredArgsConstructor public enum PictureRatio implements ConvertableEnum { - RATIO_3_2("RATIO_3_2", "가로3:세로2"), + RATIO_3_2("RATIO_3_2", "세로3:가로2"), NONE("NONE", "NONE"), - RATIO_2_3("RATIO_2_3", "가로2:세로3"); + RATIO_2_3("RATIO_2_3", "세로2:가로3"); private final String stringValue; private final String response;