Skip to content

Commit

Permalink
d
Browse files Browse the repository at this point in the history
  • Loading branch information
BYEONGRYEOL committed Jun 16, 2024
1 parent f95e70b commit 0ca103f
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ public class SettlementController {
@GetMapping("")
public ResponseEntity<ApiResult<SettlementAndWithdrawPageResponseDto>> getMySettlements(
@AuthenticationPrincipal UserDetailsImpl userDetails,
@RequestParam @NotNull @Min(0) int page,
@RequestParam @NotNull @Min(1) int size,
@RequestParam(defaultValue = "createdAt") String sortBy,
@RequestParam(defaultValue = "desc") String direction
@RequestParam(name = "page") @NotNull @Min(0) int page,
@RequestParam(name = "size") @NotNull @Min(1) int size,
@RequestParam(name = "sortBy", defaultValue = "createdAt") String sortBy,
@RequestParam(name = "direction", defaultValue = "desc") String direction
) {
Sort.Direction sortDirection = Sort.Direction.fromString(direction);
Pageable pageable = PageRequest.of(page, size, Sort.by(sortDirection, sortBy));
Expand Down

0 comments on commit 0ca103f

Please sign in to comment.