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