-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* refactor: 멤버 image url 반환메서드 분리 * refactor: getter 추가 * refactor: ReplayCommentDto 생성메서드 구현, dto 필드변경(회원 이미지와 투표이미지 추가를 위한 파라미터 변경), 대댓글주인 replyer 로 네이밍 변경 * refactor: 대댓글주인 replyer 로 네이밍 변경 * refactor: Notification 회원 이미지 url, 컨탠츠 이미지 url 컬럼(필드) 추가, 알림저장 메서드 이미지 url 파라미터 추가 * refactor: 알림 조회시 읽음상태, 회원 이미지 url, 컨텐츠(투표) 이미지 url 응답 추가 * fix: NotificationDto createAt format 문법오류 수정 * fix: 댓글 조회시 패치조인으로 가져오게 변경 * fix: dto 이미지 파라미터 잘못된값 주는거 수정 * fix: 알림 응답 시간 초 추가
- Loading branch information
Showing
12 changed files
with
83 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 21 additions & 2 deletions
23
src/main/java/com/salmalteam/salmal/comment/dto/response/ReplayCommentDto.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,37 @@ | ||
package com.salmalteam.salmal.comment.dto.response; | ||
|
||
import com.salmalteam.salmal.comment.entity.Comment; | ||
import com.salmalteam.salmal.member.entity.Member; | ||
import com.salmalteam.salmal.vote.entity.Vote; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Getter; | ||
|
||
@AllArgsConstructor | ||
@Getter | ||
public class ReplayCommentDto { | ||
private final Long commentOwnerId; | ||
private final Long commenterId; | ||
private final Long replyerId; | ||
private final Long commentId; | ||
private final String nickName; | ||
private final String content; | ||
private final String replyerImageUrl; | ||
private final String VoteImageUrl; | ||
|
||
public static ReplayCommentDto createNotificationType(Member replyer, Member commenterOwner, Comment comment, Comment reply, | ||
Vote vote) { | ||
return new ReplayCommentDto( | ||
commenterOwner.getId(), //알림 타켓 ID | ||
replyer.getId(), //대댓글 작성자 | ||
comment.getId(), //대댓글을 작성한 댓글 ID | ||
replyer.getNickName().getValue(), //대댓글 작성자 ID | ||
reply.getContent().getValue(), //대댓글 내용 | ||
replyer.getMemberImage().getImageUrl(), //대댓글 작성자 이미지 | ||
vote.getVoteImage().getImageUrl() //대댓글 작성한 투표의 이미지 | ||
); | ||
} | ||
|
||
public boolean isSameCommenter() { | ||
return commentOwnerId.equals(commenterId); | ||
return commentOwnerId.equals(replyerId); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 6 additions & 3 deletions
9
src/main/java/com/salmalteam/salmal/comment/entity/Content.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 5 additions & 3 deletions
8
src/main/java/com/salmalteam/salmal/vote/entity/VoteImage.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters