| package com.example.g8backend.service; | |
| import com.example.g8backend.entity.Comment; | |
| import java.util.List; | |
| public interface ICommentService { | |
| void createComment(Long postId, Long userId, String content, Long parentCommentId); | |
| List<Comment> getCommentsByPostId(Long postId); | |
| List<Comment> getReplies(Long parentCommentId, int depth); | |
| boolean deleteComment(Long commentId); | |
| } |