Skip to content

Commit

Permalink
Merge pull request #218 from Team-TenTen/fix/space/pagination
Browse files Browse the repository at this point in the history
Fix/space/pagination  -  ์ŠคํŽ˜์ด์Šค ํ•„ํ„ฐ ์กฐํšŒ API ์—๋Ÿฌ ํ•ด๊ฒฐ.
  • Loading branch information
young970 authored Feb 1, 2024
2 parents 44066f3 + c87e406 commit d72bdb5
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,16 @@
import org.springframework.util.StringUtils;

public record SpaceCursorPageRequest(
Integer pageSize,
int pageSize,
Sort sort,
Category filter
) {

public static SpaceCursorPageRequest of(
Integer pageSize,
int pageSize,
String sort,
Category filter
)
{
) {
return new SpaceCursorPageRequest(
pageSize,
StringUtils.hasText(sort) ? Sort.by(sort) : Sort.unsorted(),
Expand Down

0 comments on commit d72bdb5

Please sign in to comment.