| package com.pt5.pthouduan.mapper; |
| import com.pt5.pthouduan.entity.Comment; |
| import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| import org.apache.ibatis.annotations.Mapper; |
| import org.apache.ibatis.annotations.Param; |
| public interface CommentMapper extends BaseMapper<Comment> { |
| void save(Comment comment); |
| int deleteByCommentid(@Param("commentid") Integer commentid); |
| int updateComment(Comment comment); |
| List<Comment> selectByPostid(@Param("postid") Integer postid); |
| int incrementLikes(@Param("commentid") Integer commentid); |
| int decrementLikes(@Param("commentid") Integer commentid); |