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, @Param("viewerId") Long viewerId); Comment findById(@Param("id") Long id); int insert(Comment comment); int delete(@Param("id") Long id); int deleteByPostId(@Param("postId") Long postId); /** 신고 누적 블라인드 설정 */ int updateBlocked(@Param("id") Long id, @Param("blocked") boolean blocked); /** 내 댓글 모아보기 (글 제목·카테고리 포함) */ java.util.List findMyPage( @Param("memberId") Long memberId, @Param("offset") int offset, @Param("size") int size); long countMyComments(@Param("memberId") Long memberId); }