Skip to content

[FEAT] 미션 구현#69

Merged
djeu1116 merged 3 commits intodevelopfrom
feat/#65-mission
Feb 10, 2026
Merged

[FEAT] 미션 구현#69
djeu1116 merged 3 commits intodevelopfrom
feat/#65-mission

Conversation

@djeu1116
Copy link
Contributor

요약

미션에 관련된 기능 구현

  1. 미션 조회 & 생성(채팅방 별로 생성, 24시간마다 생성) -> 채팅방에 대한 미션 조회, 없으면 생성
  2. 만료된 미션 강제 실패 처리 (스케줄러 강제 호출) -> 테스트용
  3. 미션 완료(내부 로직으로 미션 성공 여부 판단)
  • 로직
  1. 미션 타입이 PHOTO인 경우 사진을 하나 이상 보내야한다.
  2. PHOTO가 아닌 다른 타입의 미션인 경우 텍스트 메시지를 하나 이상 보내야한다.
  3. 위에 1,2번 조건을 만족하면서 미션을 받은 이후에 해당 내용을 수행해야 한다.

연결된 이슈 번호



세부 작업 사항

  • 미션 관련 API 구현
  • 회원가입시에 NONE 뱃지 발급하도록 추가


Approve 하기 전에 확인할 것

  • 회원가입시 기본 뱃지를 발급


체크리스트

  • PR 제목 확인!
  • 이슈 연결 확인!

@djeu1116 djeu1116 requested a review from rud15dns February 10, 2026 13:16
@djeu1116 djeu1116 self-assigned this Feb 10, 2026
@djeu1116 djeu1116 linked an issue Feb 10, 2026 that may be closed by this pull request
Copy link
Collaborator

@rud15dns rud15dns left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

미션 부여 방식 확인했습니다!
혹시 미션의 경우에는 목 데이터로 DB에 넣어두어야 하는 부분일까요?

Comment on lines +61 to +65
// 미션 가져오기 (없으면 생성 시도)
ChatRoomMission currentMission = getOrCreateDailyMission(chatRoom);

// 내 참여 로그 가져오기 (없으면 생성)
MissionLog myLog = getOrCreateMissionLog(currentMission, member);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

getOrCreate 부분 로직이 명확해서 이해하기 쉽네요 감사합니다!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

정성스러운 리뷰 감사합니다 !
미션의 경우에는 제가 기능명세서에 있는 미션들 우선 전부 넣어놨습니다 !

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

DB에 있는 미션 내용 확인했습니다 머지하셔요~!

@djeu1116 djeu1116 merged commit 8611800 into develop Feb 10, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEAT] 미션 구현

2 participants