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; + } }