Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

public record ModifyCommentRequest(
Long commentId,
String content) {
String content
) {

}
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
package cholog.supp.api.member.dto.request;

public record SignInMember(String email, String password) {
public record SignInMember(
String email,
String password
) {

}
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
package cholog.supp.api.member.dto.request;

public record SignUpMember(String email, String password) {
public record SignUpMember(
String email,
String password
) {

}
3 changes: 2 additions & 1 deletion src/main/java/cholog/supp/api/post/dto/ModifyPost.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

public record ModifyPost(
String title,
String description) {
String description
) {

}
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
public record CreatePostRequest(
String title,
String description,
Long studyId) {
Long studyId
) {

}

This file was deleted.

3 changes: 0 additions & 3 deletions src/main/java/cholog/supp/api/post/service/PostService.java
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ public EachPostResponse getEachPost(Member member, Long postId) {
return new EachPostResponse(eachPost, comments);
}

@Transactional(readOnly = true)
public List<EachComment> getCommentList(Long studyId, List<Comment> comments, Member member) {
return comments.stream().map(comment -> {
Member nowCommentMember = comment.getMember();
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Member nowCommentMember = comment.getMember();
Member commentMember = comment.getMember();

변수 네이밍을 이렇게 바꾸는건 어때?? nowCommentMember도 직관적인 표현이긴 한데, now가 없어도 이해가 되는 의미라고 생각해서!
편한대로 적용하면 좋을거 같어!

Copy link
Copy Markdown
Member

@gogo1414 gogo1414 Oct 22, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

스크린샷 2024-10-22 오후 5 36 54 스크린샷 2024-10-22 오후 5 37 24

두 이미지를 보면 변수 네이밍에 대해 깃헙 코드로 해본건데 nowCommentMember 변수 네이밍이 우리 코드밖에 없네😂

Expand All @@ -90,6 +89,4 @@ public List<EachComment> getCommentList(Long studyId, List<Comment> comments, Me
return new EachComment(comment, memberType, isAuthor);
}).toList();
}


}
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

public record CreateStudyGroupRequest(
String studyName,
String organization) {
String organization
) {

}