-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat/#43 add author booktalks get api #45
Conversation
# Conflicts: # src/main/java/org/sophy/sophy/domain/dto/MyPageDto.java # src/main/java/org/sophy/sophy/infrastructure/BooktalkRepository.java # src/main/java/org/sophy/sophy/service/MemberService.java
public List<MyPageBooktalkDto> getAuthorByMemberId(Long memberId) { | ||
List<MemberBooktalk> authorBookTalkList = getMemberById(memberId).getUserBookTalkList(); | ||
List<MyPageBooktalkDto> booktalkResponseDtoList = new ArrayList<>(); | ||
authorBookTalkList.forEach(memberBooktalk -> { | ||
Booktalk booktalk = memberBooktalk.getBooktalk(); | ||
booktalkResponseDtoList.add(MyPageBooktalkDto.builder() | ||
.booktalkId(booktalk.getId()) | ||
.booktalkImageUrl(booktalk.getBooktalkImageUrl()) | ||
.title(booktalk.getTitle()) | ||
.author(booktalk.getAuthor().getName()) | ||
.startDate(booktalk.getStartDate()) | ||
.endDate(booktalk.getEndDate()) | ||
.place(booktalk.getPlace().getName()) | ||
.participant(booktalk.getParticipantList().size()) | ||
.maximum(booktalk.getMaximum()) | ||
.booktalkStatus(booktalk.getBooktalkStatus()) | ||
.build()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
getAuthorByMemberId
λΌλκ² λκ° μ΄λ¦μ΄ λͺ¨νΈνκ±° κ°μλ°, μκ°κ° μκΈ°κ° κ°μ€ν λΆν ν¬ λ¦¬μ€νΈλ₯Ό μ‘°ννλκ² λ§μκΉμ?
μλλ©΄ μ μ²ν λΆν ν¬λ κ°μ΄ 보μ΄λ건κ°μ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
μ΄κ±°λ μκ°κ° κ°μ€ν λΆν ν¬ λ¦¬μ€νΈ λ°μμ€λ λ©μλμ
λλ€!
λ·° μμΌλ‘ μ μ²ν λΆν ν¬μ λΆν ν¬ κ΄λ¦¬κ° λλμ΄ μλ κ² κ°μμ λ©μλλ λλ μ μμ±νμ΅λλ€~
π κ΄λ ¨ μ΄μ
closed #43
β¨ κ³Όμ λ΄μ©
πΈ μ€ν¬λ¦°μ·(μ ν)
π λ νΌλ°μ€ (λλ μλ‘ μκ² λ λ΄μ©) νΉμ κΆκΈν μ¬νλ€