Skip to content

Commit

Permalink
chore: 페이지네이션 default value 설정
Browse files Browse the repository at this point in the history
  • Loading branch information
mikekks committed Dec 1, 2024
1 parent be98b9a commit 3950bcd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public interface AdminMemberApi {
@Parameters({
@Parameter(name = "password", description = "패스워드", example = "abcdef", required = true),
@Parameter(name = "page", description = "페이지 수, 최솟값 1", example = "1", required = true),
@Parameter(name = "take", description = "가져올 데이터 수", example = "10", required = true)
@Parameter(name = "take", description = "가져올 데이터 수", example = "20", required = true)
})
ResponseEntity<GetMembersActivitiesResponse> getMemberActivities(
@RequestParam String password,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ public class AdminMemberController implements AdminMemberApi {
@GetMapping
public ResponseEntity<GetMembersActivitiesResponse> getMemberActivities(
@RequestParam String password,
@RequestParam int page,
@RequestParam int take) {
@RequestParam(defaultValue = "1") int page,
@RequestParam(defaultValue = "20") int take) {

return ResponseEntity.ok().body(adminMemberService.getMemberActivities(password, page, take));
}
Expand Down

0 comments on commit 3950bcd

Please sign in to comment.