SAMS/src/main/java/com/bruce/sams/service/CommentService.java

19 lines
637 B
Java

package com.bruce.sams.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.bruce.sams.domain.ams.Comment;
import java.util.List;
/**
* @author bruce
* @description 针对表【ams_comment(活动评论表)】的数据库操作Service
* @createDate 2025-02-20 15:08:30
*/
public interface CommentService extends IService<Comment> {
void addComment(Long userId, Long actId, String content, Long parentCommentId);
void deleteComment(Long commentId, Long userId, boolean isAdmin);
List<Comment> getCommentsForActivity(Long actId);
List<Comment> getRepliesForComment(Long parentCommentId);
}