Skip to content

✨ feat [#26] : 사용자 전체 조회 API 생성#27

Open
AnJungGeon wants to merge 6 commits intodevfrom
feature/26-feature-user-findAll
Open

✨ feat [#26] : 사용자 전체 조회 API 생성#27
AnJungGeon wants to merge 6 commits intodevfrom
feature/26-feature-user-findAll

Conversation

@AnJungGeon
Copy link
Copy Markdown
Member

✨ 변경 타입

  • 신규 기능 추가/수정
  • 버그 수정
  • 리팩토링
  • 설정
  • 비기능 (주석 등 기능에 영향을 주지 않음)

✅ 체크리스트

  • 코드 작성 가이드라인을 준수했는가?
  • 변경 사항에 대한 테스트를 완료했는가?
  • 문서 변경이 필요한 경우, 해당 내용을 반영했는가?

🚀 PR 내용

  • 한 줄 요약
    *사용자 전체 조회 api 작성했습니다

  • 세부 내용

    • 체험단 신청 시 사용자 목록을 캐싱 해 둔 후 비교하는 목적입니다

- 사용자 전체 조회 InternalApi 요청 컨트롤러 추가했습니다
- 사용자 전체 조회 Repository 메소드 작성했습니다
- 사용자 전체 조회 서비스 메소드 작성했습니다
@AnJungGeon AnJungGeon requested review from mummumm and sohyun119 April 28, 2025 14:32
@AnJungGeon AnJungGeon self-assigned this Apr 28, 2025
@AnJungGeon AnJungGeon linked an issue Apr 28, 2025 that may be closed by this pull request
@AnJungGeon AnJungGeon moved this to In Review in LIMITED Apr 28, 2025
return UserMapper.toGetMyPageResponse(user);
}

@Transactional
Copy link
Copy Markdown
Member

@chokyuseong00 chokyuseong00 Apr 29, 2025

Choose a reason for hiding this comment

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

readOnly를 사용하여 조회용 트랜잭션임을 명시해 주시는 것도 좋을 것 같습니다!

return ResponseEntity.ok(response);
}

@GetMapping
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

관리자만 요청이 가능하게끔 구성하셔도 좋을 것 같습니다!

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

create시 uri 반환도 함께 하면 좋을 것 같아요!

-조회용 트랜잭션 명시해주는 readOnly 추가했습니다
Copy link
Copy Markdown
Member

@mummumm mummumm left a comment

Choose a reason for hiding this comment

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

고생하셨습니다!

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

전체조회시 페이징 처리는 안하시나용?

Copy link
Copy Markdown
Member

@sohyun119 sohyun119 left a comment

Choose a reason for hiding this comment

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

고생하셨습니다! 레디스 마무리하고 추가 기능 구현까지..엄지 다섯개 보내드립니다👍👍👍👍👍

- 관리자만 회원전체 조회 할 수 있도록 했습니다
- 체험단 생성 시 회원 정보를 미리 캐싱할 수 있도록 컨트롤러 메서드명을 명시적으로 변경
- 사용자 전체 조회 시 페이징 처리 추가했습니다
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: In Review

Development

Successfully merging this pull request may close these issues.

[feature] user-service : 사용자 전체조회 internalAPI

4 participants