Skip to content

Commit

Permalink
fix : link 속성을 없애고 id를 통해 url을 반환한다.
Browse files Browse the repository at this point in the history
  • Loading branch information
Due-IT committed Sep 26, 2024
1 parent 8915c80 commit cc7e5f0
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -52,12 +50,15 @@ 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;
this.bySort = bySort;
this.byIngredient = byIngredient;
this.bySituation = bySituation;
}

public String getLink(){
return "https://m.10000recipe.com/recipe/"+this.id;
}
}

0 comments on commit cc7e5f0

Please sign in to comment.