Skip to content

동아리 저장 기능 구현#70

Merged
jwchoi-kr merged 4 commits into
developfrom
feat/club-is-saved
Jun 2, 2026
Merged

동아리 저장 기능 구현#70
jwchoi-kr merged 4 commits into
developfrom
feat/club-is-saved

Conversation

@jwchoi-kr

@jwchoi-kr jwchoi-kr commented May 31, 2026

Copy link
Copy Markdown
Collaborator

작업 내용

  • 관련 클라 작업: 동아리 저장 기능 구현 allclear-app#61
  • club entity, DTO에 isSaved: boolean 추가
  • club.service.ts에 getSavedClubIdSet(serviceUserId: string | null, clubUuids: string[]) 함수를 추가. 임의의 동아리 목록에서 유저가 저장한 동아리들을 반환. club 관련 service 로직에서 이를 이용
  • 바뀐 서비스 로직에 맞춰 컨트롤러 수정

변경 이유

  • 기존의 club api가 isSaved를 제공하지 않아, 클라에서 saved club list로 filtering하던 로직 대신, 서버에서 club에 isSaved를 함께 내려주도록 수정

테스트한 내용

  • 로컬에서 서버 띄우고 바뀐 클라 로직에 맞춰 테스트 시 전부 잘됨 (자세한건 클라 PR 참고)

체크

  • 정상 동작 확인
  • UI 깨짐 없음
  • 콘솔 에러 없음

jwchoi-kr and others added 4 commits May 31, 2026 18:56
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
…vices

Add getSavedClubIdSet helper and thread an optional serviceUserId through
club lookups and search hydration so each returned club reflects whether
the current user has saved it.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Resolve the optional caller identity and pass the resolved serviceUserId
to the club and search services so list, detail, and search responses
include the isSaved flag for authenticated users.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@jwchoi-kr jwchoi-kr changed the title Feat/club is saved 동아리 저장 기능 구현 May 31, 2026
@jwchoi-kr jwchoi-kr merged commit 5922ccf into develop Jun 2, 2026
jwchoi-kr added a commit that referenced this pull request Jun 29, 2026
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.

1 participant