Files
sb-backend/src/main/java/com/sb/web/board/mapper/CommentMapper.java
T
isodevandClaude Opus 4.8 0b027b3704 feat: 커뮤니티 UGC 안전장치 추가 (App Store 가이드라인 1.2 대응)
- 사용자 차단(user_block) 테이블·매퍼·API 추가
- 게시글/댓글 목록·상세 쿼리에 차단 사용자 필터링(즉시 숨김)
- 부적절 표현(욕설·비방) 콘텐츠 필터 추가(작성·수정·댓글 차단)
- 관리자용 사용자 차단 통지 조회 API

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-15 21:41:34 +09:00

31 lines
930 B
Java

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<Comment> 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<com.sb.web.board.dto.MyCommentResponse> findMyPage(
@Param("memberId") Long memberId, @Param("offset") int offset, @Param("size") int size);
long countMyComments(@Param("memberId") Long memberId);
}