Skip to content

feat: comment 기능 구현 #12

@GoHyunA

Description

@GoHyunA

✅ 기능 설명

댓글 CRUD 기본 구현
게시글(Cast)에 댓글을 달고 / 조회하고 / 수정하고 / 삭제할 수 있는 REST API 제공

✏️ 작업 상세 내용

체크박스 형태로 적어주세요

  • Comment 엔티티 보강 (content 길이 255, FK nullable, updatedAt 제거)
  • CommentRepository 생성 - findByCastIdOrderByCreatedAtAsc
  • DTO 3종 - CreateCommentRequest, UpdateCommentRequest, CommentResponse
  • CommentService 작성 - CRUD + 작성자 권한 검증
  • CommentController 작성 (POST/GET/PUT/DELETE 엔드포인트)

🕙 작업 예상 시간

2시간

💬 기타 참고

로그인 정보는 Principal에서 PK(Long)로 변환해 사용
N+1 방지를 위해 레포지토리 메서드에 @entitygraph("member") 적용

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions