package nju.seec.helper.logic.service; import nju.seec.helper.logic.vo.CommentVO; import nju.seec.helper.util.enums.UserType; import nju.seec.helper.web.dto.CommentDTO; import org.springframework.data.domain.Pageable; import java.util.List; /** * @author cst */ public interface CommentService { /** * 发布评论 * * @param userId * @param username * @param userType * @param commentDTO * @return */ CommentVO create(Integer userId, String username, UserType userType, CommentDTO commentDTO); /** * 获取评论 * * @param itemId * @param pageable * @return */ List getComments(Integer itemId, Pageable pageable); /** * 删除评论 * * @param commentId */ void deleteComment(Integer commentId); }