夜雨声烦 | 5c9d131 | 2025-04-23 17:46:19 +0800 | [diff] [blame] | 1 | package com.example.g8backend.service; |
2 | |||||
3 | import com.example.g8backend.entity.Comment; | ||||
4 | |||||
5 | import java.util.List; | ||||
6 | |||||
7 | public interface ICommentService { | ||||
8 | |||||
9 | void createComment(Long postId, Long userId, String content, Long parentCommentId); | ||||
10 | |||||
11 | List<Comment> getCommentsByPostId(Long postId); | ||||
12 | |||||
13 | List<Comment> getReplies(Long parentCommentId, int depth); | ||||
14 | |||||
15 | boolean deleteComment(Long commentId); | ||||
16 | } |