From 0f119b725c733f837cb5fe4dc0a480908b9a1c16 Mon Sep 17 00:00:00 2001 From: Hanvp Date: Sun, 18 Feb 2024 12:49:59 +0900 Subject: [PATCH] =?UTF-8?q?:recycle:=20Refactor/315=20resizing=20lambda=20?= =?UTF-8?q?trigger=20querystring=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/zipdabang/server/converter/RecipeConverter.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/zipdabang/server/converter/RecipeConverter.java b/src/main/java/zipdabang/server/converter/RecipeConverter.java index 573d65d..1ddca3b 100644 --- a/src/main/java/zipdabang/server/converter/RecipeConverter.java +++ b/src/main/java/zipdabang/server/converter/RecipeConverter.java @@ -848,7 +848,7 @@ public static RecipeResponseDto.RecipeDto toResponseTestRecipeDto(TestRecipe rec .recipeName(recipe.getName()) .ownerImage("") .nickname("test") - .thumbnailUrl(recipe.getThumbnailUrl()) + .thumbnailUrl(recipe.getThumbnailUrl()+"?size=thumbnail") .time(recipe.getTime()) .intro(recipe.getIntro()) .recipeTip(recipe.getRecipeTip()) @@ -874,7 +874,7 @@ public static List toResponseTestStepDto(TestRecipe r .map(step-> RecipeResponseDto.StepDto.builder() .stepNum(step.getStepNum()) .description(step.getDescription()) - .image(step.getImageUrl()) + .image(step.getImageUrl()+"?size=step") .build()) .collect(Collectors.toList()); } @@ -907,7 +907,7 @@ private static RecipeResponseDto.RecipeSimpleDto toResponseTestRecipeSimpleDto(T .categoryId(getTestCategoryIds(recipe)) .recipeName(recipe.getName()) .nickname("test") - .thumbnailUrl(recipe.getThumbnailUrl()) + .thumbnailUrl(recipe.getThumbnailUrl()+"?size=preview") .createdAt(staticTimeConverter.ConvertTime(recipe.getCreatedAt())) .updatedAt(staticTimeConverter.ConvertTime(recipe.getUpdatedAt())) .comments(0L)