Skip to content

Commit

Permalink
[TERK-102/Refactor] 멤버 리스트 조회 API response 네이밍 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
JeongSangByuk committed Jan 16, 2023
1 parent 1ff48cb commit bee583d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@
@Builder(access = AccessLevel.PRIVATE)
public class MbrFindListResponse {

private HashMap<Long, MbrInfo> mbrList;
private HashMap<Long, MbrInfo> mbrMap;

public static MbrFindListResponse of(List<Mbr> mbrList) {

return MbrFindListResponse
.builder()
.mbrList((HashMap<Long, MbrInfo>) mbrList.stream().collect(Collectors.toMap(Mbr::getId, MbrInfo::of)))
.mbrMap((HashMap<Long, MbrInfo>) mbrList.stream().collect(Collectors.toMap(Mbr::getId, MbrInfo::of)))
.build();

}
Expand Down

0 comments on commit bee583d

Please sign in to comment.