Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
feat : 유저 조회 기능 추가
📝 개요
관리자 게시판 중, 유저의 목록을 반환하는 기능을 작성했습니다.
⚙️ 구현 내용
조회 규칙
- nickname 파라미터가 없는 경우: 전체 사용자 목록을 페이지 단위로 조회합니다.
- nickname 파라미터가 있는 경우: 해당 닉네임과 정확히 일치하는 유저 1명만 반환합니다.
- 이때 page 파라미터는 반드시 0이어야 합니다.
📎 기타
🧪 테스트 결과
1. 잘못된 닉네임으로 조회 시 에러 발생
2. 닉네임으로 조회 시, page 파라미터를 0이 아닌 값으로 준 경우 에러 발생
3. 전체 사용자 조회
4. 단일 사용자 조회
5. 신고 당한 횟수, 제재 받은 횟수 카운팅 확인