Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: 승인 가능 멤버 조회 controller 구현
Browse files Browse the repository at this point in the history
Sangwook02 committed Feb 13, 2024
1 parent e399e7b commit 583a1fd
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -6,6 +6,7 @@
import com.gdschongik.gdsc.domain.member.dto.request.MemberUpdateRequest;
import com.gdschongik.gdsc.domain.member.dto.response.MemberFindAllResponse;
import com.gdschongik.gdsc.domain.member.dto.response.MemberGrantResponse;
import com.gdschongik.gdsc.domain.member.dto.response.MemberGrantableFindAllResponse;
import com.gdschongik.gdsc.domain.member.dto.response.MemberPendingFindAllResponse;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
@@ -65,4 +66,11 @@ public ResponseEntity<MemberGrantResponse> grantMember(@Valid @RequestBody Membe
MemberGrantResponse response = adminMemberService.grantMember(request);
return ResponseEntity.ok().body(response);
}

@Operation(summary = "승인 가능 회원 전체 조회", description = "승인 가능한 회원 전체를 조회합니다.")
@GetMapping("/grantable")
public ResponseEntity<Page<MemberGrantableFindAllResponse>> getGrantableMembers(Pageable pageable) {
Page<MemberGrantableFindAllResponse> response = adminMemberService.getGrantableMembers(pageable);
return ResponseEntity.ok().body(response);
}
}

0 comments on commit 583a1fd

Please sign in to comment.