Skip to content

Commit

Permalink
[feat] 채소 존재 여부 헬퍼 메서드
Browse files Browse the repository at this point in the history
  • Loading branch information
MinchoGreenT committed Jul 26, 2024
1 parent 5cc09f2 commit 102929a
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ public List<MyVeggieVo> getMyVeggieInfo(Long userId) {
return myVeggieRepository.findMyVeggieInfoForCreate(userId);
}

public Boolean checkMyVeggie(Long userId) {
return myVeggieRepository.existsById(userId);
}

public void deleteMyVeggie(Long id) {
myVeggieRepository.deleteById(id);
}
Expand Down

0 comments on commit 102929a

Please sign in to comment.