Skip to content

[Refactor] commentSystem을 commentEvent로 변경#69

Merged
jae-2024 merged 1 commit intomainfrom
Refactor/#68/comment-event
Mar 9, 2026
Merged

[Refactor] commentSystem을 commentEvent로 변경#69
jae-2024 merged 1 commit intomainfrom
Refactor/#68/comment-event

Conversation

@jae-2024
Copy link
Contributor

@jae-2024 jae-2024 commented Mar 9, 2026

CommentType 구조 변경

  • 기존
    USER
    SYSTEM
  • 변경
    USER
    APPLY
    APPROVE
    REJECT
    CANCEL
    이벤트 댓글을 타입으로 구분하도록 변경했습니다.

이벤트 댓글 생성 로직 추가

  • 기존
    createSystemComment()
  • 변경
    createEventComment()
    이벤트 타입을 전달받아 댓글을 생성하도록 수정했습니다.
    createEventComment(
    Long feedId,
    Long participationId,
    String message,
    CommentType type
    )

ParticipationService 이벤트 댓글 생성 추가

참가 이벤트 발생 시 댓글이 생성되도록 추가했습니다.
참가 신청
CommentType.APPLY
참가 승인
CommentType.APPROVE
참가 거절
CommentType.REJECT

이벤트 댓글 삭제 방지 로직 수정

  • 기존
    SYSTEM 댓글 삭제 불가

  • 변경
    USER 댓글만 삭제 가능
    if (comment.getCommentType() != CommentType.USER)

  • 변경된 흐름
    참가 신청
    Participation 생성

    Comment (APPLY) 생성
    참가 승인
    Participation status → APPROVED

    Comment (APPROVE) 생성

    Notification 전송
    참가 거절
    Participation status → REJECTED

    Comment (REJECT) 생성

    Notification 전송

@jae-2024 jae-2024 self-assigned this Mar 9, 2026
@jae-2024 jae-2024 added the 🔨Refactor 코드 리팩토 label Mar 9, 2026
@jae-2024 jae-2024 linked an issue Mar 9, 2026 that may be closed by this pull request
@jae-2024 jae-2024 merged commit cbfd9f7 into main Mar 9, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🔨Refactor 코드 리팩토

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Refactor] 댓글 enum을 이벤트기반으로 변경

1 participant