Skip to content

Commit

Permalink
SpaceWallResponse에 memberId 추가 (#219)
Browse files Browse the repository at this point in the history
  • Loading branch information
miyounlee authored Oct 27, 2023
1 parent 4fc19b1 commit 4b21668
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ public ResponseEntity<ApiResponse.Response<SpaceWallResponse>> findByShareURL(
SpaceWallResponse data = spaceWallFindService.findByShareURL(shareURL, token, jwtTokenizer);
return ApiResponse.response(ApiStatus.OK, "공유페이지 조회를 성공했습니다.", data);
}

@GetMapping("/wall/has-duplicate/{shareURL}")
public ResponseEntity<ApiResponse.Response<DuplicateURLResponse>> hasDuplicateShareURL (@PathVariable final String shareURL) {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ public class SpaceWallResponse {

private String category;
private Long spaceWallId;
private Long memberId;
private Boolean isPublic;
private String shareURL;
private CommonResponse wallInfoBlock;
Expand All @@ -20,11 +21,12 @@ public class SpaceWallResponse {
private SpaceWallResponse() {}

@Builder
public SpaceWallResponse(final String category, final Long spaceWallId, final Boolean isPublic, final String shareURL, final CommonResponse wallInfoBlock,
public SpaceWallResponse(final String category, final Long spaceWallId, final Long memberId, final Boolean isPublic, final String shareURL, final CommonResponse wallInfoBlock,
final List<BlockResponse<CommonResponse>> blocks, final CommonResponse styleSetting) {

this.category = category;
this.spaceWallId = spaceWallId;
this.memberId = memberId;
this.isPublic = isPublic;
this.shareURL = shareURL;
this.wallInfoBlock = wallInfoBlock;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public SpaceWallResponse find(final Long memberId, final Long spaceId, final Lon
String shareURL = spaceWall.getShareURL();
Boolean isPublic = spaceWall.getIsPublic();

return new SpaceWallResponse(category, spaceWallId, isPublic, shareURL, wallInfoBlockResponse, blocks, styleSettingResponse);
return new SpaceWallResponse(category, spaceWallId, memberId, isPublic, shareURL, wallInfoBlockResponse, blocks, styleSettingResponse);
}

private CommonResponse createWallInfoBlock(Map<Long, List<JsonNode>> groupedBlockByPosition) {
Expand Down

0 comments on commit 4b21668

Please sign in to comment.