blob: 4fc9a034b2168f6687f7ddd8ec457ff21000be53 [file] [log] [blame]
夜雨声烦5c9d1312025-04-23 17:46:19 +08001package com.example.g8backend.service;
2
夜雨声烦af4d3972025-06-08 17:52:16 +08003import com.example.g8backend.dto.CommentDTO;
夜雨声烦5c9d1312025-04-23 17:46:19 +08004import com.example.g8backend.entity.Comment;
5
6import java.util.List;
7
8public interface ICommentService {
9
夜雨声烦af4d3972025-06-08 17:52:16 +080010 void createComment(CommentDTO commentDTO);
夜雨声烦5c9d1312025-04-23 17:46:19 +080011
12 List<Comment> getCommentsByPostId(Long postId);
13
14 List<Comment> getReplies(Long parentCommentId, int depth);
15
16 boolean deleteComment(Long commentId);
17}