package com.sb.web.board.mapper; import com.sb.web.board.domain.Comment; import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Param; import java.util.List; @Mapper public interface CommentMapper { List findByPostId(@Param("postId") Long postId); Comment findById(@Param("id") Long id); int insert(Comment comment); int delete(@Param("id") Long id); int deleteByPostId(@Param("postId") Long postId); }