Skip to content

Commit

Permalink
feat: #119-헬퍼 매칭글 리스트 생성 Service 구현
Browse files Browse the repository at this point in the history
  • Loading branch information
BlueBerrySoda committed May 2, 2024
1 parent 64a1130 commit 4b25bfa
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,14 @@ public void eraseHelp(Long id){
helpRepository.deleteById(id);
}

public HelpSliceResponse getHelpList(HelpListRequest request) {
Pageable page = PageRequest.of(0, 20);
Long cursorId = request.cursorId();
if(cursorId == 0) cursorId = null;
HelpSliceResponse helpList = helpRepository.getHelpListByPaging(cursorId, page, request.isDone(), request.isHelper(), request.isMine());

return helpList;
}


}

0 comments on commit 4b25bfa

Please sign in to comment.