Skip to content
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

fix: create 메소드 수정 #56

Closed
wants to merge 11 commits into from
Closed

fix: create 메소드 수정 #56

wants to merge 11 commits into from

Conversation

jihyo-j
Copy link
Member

@jihyo-j jihyo-j commented Mar 5, 2024

  • 댓글 생성시 내용만 전달
  • 조회할때 광고id 기반으로 댓글 내용 조회

@PostMapping("/{advertiseId}")
public ResponseEntity<CommentDetail> createComment(@RequestBody CommentDetail commentDTO, @PathVariable Long advertiseId) {
CommentDetail createdComment = commentService.createComment(commentDTO, advertiseId);
@PostMapping
Copy link
Member

Choose a reason for hiding this comment

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

광고 아이디 빋는 부분이 빠졌어 추가해주라

Copy link
Member

Choose a reason for hiding this comment

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

그리고 그냥 String content를 빋기보다는 commentDetail에서 댓글id랑 사용자 이메일 빼주라

@jihyo-j jihyo-j closed this Mar 6, 2024
@jihyo-j jihyo-j reopened this Mar 6, 2024
@jihyo-j jihyo-j closed this Mar 6, 2024
@jihyo-j jihyo-j reopened this Mar 6, 2024
@jihyo-j jihyo-j closed this Mar 6, 2024
@jihyo-j jihyo-j deleted the chore/Comment branch March 6, 2024 13:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants