-
Notifications
You must be signed in to change notification settings - Fork 6
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: 응원톡 생성 및 리스트 가져오기 API 작성 #199
Conversation
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.
쿼리 DSL 적용 고생 많으셨습니다 👍
DuDoong-Api/src/main/java/band/gosrock/api/comment/model/request/CreateCommentRequest.java
Outdated
Show resolved
Hide resolved
@JsonFormat( | ||
shape = JsonFormat.Shape.STRING, | ||
pattern = "yyyy-MM-dd HH:mm:ss", | ||
timezone = "Asia/Seoul") | ||
private final LocalDateTime createdAt; |
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.
@DateFormat
....!!
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.
그 궁금한게 있었는데 저렇게 jsonFormat으로 엮는거랑 정확한 차이가 궁금했습니당 @gengminy
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.
그 궁금한게 있었는데 저렇게 jsonFormat으로 엮는거랑 정확한 차이가 궁금했습니당 @gengminy
4줄짜리 1줄로 줄여서 깔끔하게 만들어줘요 기능은 똑같애요
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.
굿!
그 원랜 호스트 마다 응원톡 생기긴하는데.
그냥 공연마다로 바꿔도 될것 같아요..!
public static RetrieveCommentDTO of(Comment comment, User user) { | ||
return RetrieveCommentDTO.builder() | ||
.commentInfo(comment.toCommentInfoVo()) | ||
.userInfo(user.toUserInfoVo()) |
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.
티켓 예매관리나 관리자쪽에서는 ( 호스트에게 노출되는 환경 )
전화번호 까지 주는게 괜찮은것 같긴한데,
응원톡( 여러 사용자들에게 노출되는 환경에 )
전화번호 까지 주는건 무리가 있지않나 싶긴하네유..
따로 publicUserInfo 처럼 만들어야할듯 해요
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.
응원톡 리스트를 가져가는데 굳이 user의 모든 정보를 줘야할까? 고민해서 처음에는 userId만 넘기는 식으로 생각해봤었어요. 이런 방식으로 가면 좀 이상할까요?
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.
그러게요 그냥 닉네임 정보받은거 내려주는게 맞지 않나 싶음
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.
본인 글은 오른쪽에 떠야하는걸로 봐서 유저 정보는 내려주는게 맞지 않을까용
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.
@sanbonai06
isMine 같은 dto 필드 만들어서 true false만 내려주심될듯요!
경민형이 UserProfileVo 바로 위 피알에 만들었더라고요! |
Kudos, SonarCloud Quality Gate passed! 0 Bugs |
개요
작업사항
리스트 가져오기 API 성공 시
마지막 페이지일 때
@9yujin 클라이언트 분들은 응답값의 hasNext 컬럼에 따라 다음 요청의 여부를 결정해주시면 됩니다.
추가로 lastId는 해당 응답의 가장 마지막 comment의 id를 보내주시면 됩니다.
nest.js 버전과 달라진 것이 있으니 참고하세요
궁금한점: 티켓프로젝트 2차에서 작성한 랜덤 댓글 뽑기 및 댓글 카운트 반환 API도 필요한가요? 아직 해당 화면을 못찾아서 따로 개발은 안해놓았습니다. 필요하면 말씀해주세요
변경로직