CommentService

@Service
class CommentService(articleRepository: ArticleRepository, commentRepository: CommentRepository, userRepository: UserRepository)

Constructors

Link copied to clipboard
constructor(articleRepository: ArticleRepository, commentRepository: CommentRepository, userRepository: UserRepository)

Functions

Link copied to clipboard
@Transactional
fun createComment(email: String, articleId: Long, content: String): CommentResponse

댓글 생성 메소드

Link copied to clipboard
@Transactional
fun deleteComment(commentId: Long)

댓글 삭제 메소드

Link copied to clipboard
@Transactional
fun updateComment(email: String, articleId: Long, commentId: Long, content: String): CommentResponse

댓글 수정 메소드