Skip to content

Commit

Permalink
chore: fix naming
Browse files Browse the repository at this point in the history
  • Loading branch information
leeggmin committed Mar 26, 2024
1 parent 7f628b4 commit 08fc73a
Showing 1 changed file with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,19 @@
import java.util.List;
import java.util.stream.Collectors;

public record RecruitPageRes(List<RecruitListRes> recruit, Integer nextPage) {
public record RecruitPageRes(List<RecruitListRes> recruitList, Integer nextPage) {

public static RecruitPageRes of(Page<Recruit> recruitPage, Integer nextPage) {
return new RecruitPageRes(recruitPage.getContent().stream().map(r ->
return new RecruitPageRes(recruitPage.getContent().stream().map(recruit ->
new RecruitListRes(
r.getId(),
r.getWriter().getName(),
r.getName(),
r.getLocation(),
r.getDuty(),
r.getEtc(),
r.getPersonnel(),
r.getImage()
recruit.getId(),
recruit.getWriter().getName(),
recruit.getName(),
recruit.getLocation(),
recruit.getDuty(),
recruit.getEtc(),
recruit.getPersonnel(),
recruit.getImage()
)).collect(Collectors.toList()),
nextPage);
}
Expand Down

0 comments on commit 08fc73a

Please sign in to comment.