From cc7e5f03473a20087fcb0d848b8cf002f56b2912 Mon Sep 17 00:00:00 2001 From: FhRh Date: Thu, 26 Sep 2024 19:28:38 +0900 Subject: [PATCH] =?UTF-8?q?fix=20:=20link=20=EC=86=8D=EC=84=B1=EC=9D=84=20?= =?UTF-8?q?=EC=97=86=EC=95=A0=EA=B3=A0=20id=EB=A5=BC=20=ED=86=B5=ED=95=B4?= =?UTF-8?q?=20url=EC=9D=84=20=EB=B0=98=ED=99=98=ED=95=9C=EB=8B=A4.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/sundaegukbap/banchango/recipe/domain/Recipe.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Server/banchango/src/main/java/com/sundaegukbap/banchango/recipe/domain/Recipe.java b/Server/banchango/src/main/java/com/sundaegukbap/banchango/recipe/domain/Recipe.java index 94420da..d241048 100644 --- a/Server/banchango/src/main/java/com/sundaegukbap/banchango/recipe/domain/Recipe.java +++ b/Server/banchango/src/main/java/com/sundaegukbap/banchango/recipe/domain/Recipe.java @@ -32,8 +32,6 @@ public class Recipe { private String image1; private String image2; @NotNull - private String link; - @NotNull private int servings; @NotNull private int cookingTime; @@ -52,7 +50,6 @@ public Recipe(Long id, String name, String bestName, String introduction, String this.introduction = introduction; this.image1 = image1; this.image2 = image2; - this.link = link; this.servings = servings; this.cookingTime = cookingTime; this.difficulty = difficulty; @@ -60,4 +57,8 @@ public Recipe(Long id, String name, String bestName, String introduction, String this.byIngredient = byIngredient; this.bySituation = bySituation; } + + public String getLink(){ + return "https://m.10000recipe.com/recipe/"+this.id; + } }