Skip to content

Commit

Permalink
[Server] Fix : url관련 기능 수정 (#49)
Browse files Browse the repository at this point in the history
* feat : recipe 엔티티 속성 추가

* feat : recipe 주재료 엔티티 추가

* fix : link 속성을 없애고 id를 통해 url을 반환한다.
  • Loading branch information
Due-IT authored Sep 26, 2024
1 parent c6e2093 commit b2e13a9
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 b2e13a9

Please sign in to comment.