From 2b2a6d53f07c59a57f655e5eb3d0682791939981 Mon Sep 17 00:00:00 2001 From: yeeun <159096610+eunxeum@users.noreply.github.com> Date: Sun, 24 Nov 2024 03:52:20 +0900 Subject: [PATCH 1/3] Update README.md --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index 244b18f..c7eb77a 100644 --- a/README.md +++ b/README.md @@ -36,3 +36,11 @@

+ +
+
+ +## 서버 플로우 동작 +

+ ![image](https://github.com/user-attachments/assets/2fbff691-83bb-4a19-980e-72c617ab4321) +

From c3c0797ea510fe55b40cc0ec11e191794f53f777 Mon Sep 17 00:00:00 2001 From: "Lee, yeeun" Date: Sun, 24 Nov 2024 04:08:29 +0900 Subject: [PATCH 2/3] =?UTF-8?q?:recycle:Refactor:=20=EC=82=AC=EC=9A=A9?= =?UTF-8?q?=EC=9E=90=20=EC=9D=B4=EB=A6=84=20DTO=EC=97=90=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../domain/board/api/dto/response/BoardInfoResDto.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/univ/yesummit/domain/board/api/dto/response/BoardInfoResDto.java b/src/main/java/univ/yesummit/domain/board/api/dto/response/BoardInfoResDto.java index d2a8c59..2e7b5ce 100644 --- a/src/main/java/univ/yesummit/domain/board/api/dto/response/BoardInfoResDto.java +++ b/src/main/java/univ/yesummit/domain/board/api/dto/response/BoardInfoResDto.java @@ -12,6 +12,7 @@ public record BoardInfoResDto( Long myMemberId, Long writerMemberId, + String writerMemberName, Long boardId, String title, String content, @@ -29,10 +30,10 @@ public static BoardInfoResDto of(Member member, Board board, boolean isLike) { .map(BoardPicture::getImageUrl) .toList(); - // 투자하기 버튼 누른 사용자도 포함해야됨 return BoardInfoResDto.builder() .myMemberId(member.getId()) .writerMemberId(board.getWriter().getId()) + .writerMemberName(board.getWriter().getUsername()) .boardId(board.getBoardId()) .title(board.getTitle()) .content(board.getContent()) From c58d035524a7615d8a9805a7f19ba53769b70a19 Mon Sep 17 00:00:00 2001 From: "Lee, yeeun" Date: Sun, 24 Nov 2024 04:08:57 +0900 Subject: [PATCH 3/3] =?UTF-8?q?:recycle:Refactor:=20=EC=82=AC=EC=9A=A9?= =?UTF-8?q?=EC=9E=90=20=EC=9D=B4=EB=A6=84=20=EA=B0=80=EC=A0=B8=EC=98=A4?= =?UTF-8?q?=EB=8A=94=20=EC=84=9C=EB=B9=84=EC=8A=A4=20=EB=A1=9C=EC=A7=81=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../univ/yesummit/domain/board/application/BoardService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/univ/yesummit/domain/board/application/BoardService.java b/src/main/java/univ/yesummit/domain/board/application/BoardService.java index d6f1cd6..2795a9d 100644 --- a/src/main/java/univ/yesummit/domain/board/application/BoardService.java +++ b/src/main/java/univ/yesummit/domain/board/application/BoardService.java @@ -74,7 +74,7 @@ public List allBoardInfoBySummitId(Long summitId, Long memberId List boards = boardRepository.findBySummitId(summitId); Member member = memberId != null ? memberRepository.findById(memberId).orElse(null) : null; // memberId로 member 조회 return boards.stream() - .map(board -> BoardInfoResDto.of(member, board, false)) // member 정보를 전달 + .map(board -> BoardInfoResDto.of(board.getWriter(), board, false)) // member 정보를 전달 .collect(Collectors.toList()); }