-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
749f93f
commit a21d7a0
Showing
8 changed files
with
39 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 5 additions & 2 deletions
7
src/main/java/com/seong/shoutlink/domain/link/link/controller/request/FindLinksRequest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,20 @@ | ||
package com.seong.shoutlink.domain.link.link.controller.request; | ||
|
||
import com.seong.shoutlink.domain.link.link.service.LinkOrderBy; | ||
import jakarta.validation.constraints.NotNull; | ||
import java.util.Objects; | ||
|
||
public record FindLinksRequest( | ||
@NotNull(message = "링크 묶음 ID는 필수입니다.") | ||
Long linkBundleId, | ||
Integer page, | ||
Integer size) { | ||
Integer size, | ||
LinkOrderBy linkOrderBy) { | ||
|
||
public FindLinksRequest(Long linkBundleId, Integer page, Integer size) { | ||
public FindLinksRequest(Long linkBundleId, Integer page, Integer size, LinkOrderBy linkOrderBy) { | ||
this.linkBundleId = linkBundleId; | ||
this.page = Objects.isNull(page) ? 0 : page; | ||
this.size = Objects.isNull(size) ? 20 : size; | ||
this.linkOrderBy = linkOrderBy == null ? LinkOrderBy.CREATED_AT : linkOrderBy; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 4 additions & 1 deletion
5
src/main/java/com/seong/shoutlink/domain/link/link/service/request/FindLinksCommand.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
package com.seong.shoutlink.domain.link.link.service.request; | ||
|
||
public record FindLinksCommand(Long memberId, Long linkBundleId, int page, int size) { | ||
import com.seong.shoutlink.domain.link.link.service.LinkOrderBy; | ||
|
||
public record FindLinksCommand(Long memberId, Long linkBundleId, int page, int size, | ||
LinkOrderBy linkOrderBy) { | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters