package nju.seec.helper.service; import nju.seec.helper.dto.CommentDTO; import nju.seec.helper.dto.LoginUser; import nju.seec.helper.vo.CommentVO; import org.springframework.data.domain.Page; import org.springframework.data.domain.Pageable; /** * @author cst */ public interface CommentService { /** * 创建评论 * * @param user * @param commentDTO * @return */ CommentVO createComment(LoginUser user, CommentDTO commentDTO); /** * 删除评论 * * @param user * @param commentId */ void removeComment(LoginUser user, Long commentId); /** * 置顶评论 * * @param user * @param commentId */ void topComment(LoginUser user, Long commentId); /** * 取消置顶 * * @param user * @param commentId */ void unTopComment(LoginUser user, Long commentId); /** * 基于课件和页码数获取评论 * * @param slideId * @param pageNumber * @param pageable * @return */ Page getCommentsBySlideAndPageNumber(Long slideId, Integer pageNumber, Pageable pageable); /** * 获得某条评论 * * @param commentId * @return */ CommentVO getOneComment(Long commentId); }