Skip to content

Commit

Permalink
[Feat] : 내가 작성한 게시글 조회 시 studyId 추가 반환
Browse files Browse the repository at this point in the history
  • Loading branch information
elyudwo committed Jan 22, 2024
1 parent 733c46c commit ee66c5e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,22 @@
@Getter
public class PostDataByUserId {

private Long postId;
private MajorType major;
private String title;
private String content;
private Integer remainingSeat;
private boolean close;
private final Long postId;
private final MajorType major;
private final String title;
private final String content;
private final Integer remainingSeat;
private final boolean close;
private final Long studyId;

@Builder
public PostDataByUserId(Long postId, MajorType major, String title, String content, Integer remainingSeat, boolean close) {
public PostDataByUserId(Long postId, MajorType major, String title, String content, Integer remainingSeat, boolean close, Long studyId) {
this.postId = postId;
this.major = major;
this.title = title;
this.content = content;
this.remainingSeat = remainingSeat;
this.close = close;
this.studyId = studyId;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@ public List<PostDataByUserId> findByPostedUserId(final Long userId, final Pageab
post.title,
post.content,
post.remainingSeat,
post.close
post.close,
post.studyId
)
)
.from(post)
Expand Down

0 comments on commit ee66c5e

Please sign in to comment.