-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Weekly/11/Test/event] LikeController 반환값 수정, Event Controller에 모든 이벤…
…트 반환 api 추가 (#123) * [Weekly/10/Test/CurationController] curationControllerUnitTest 2 (#90) * feat: ReservationEventResponse에 startTime 반환 추가 * feat: Like Controller반환값 LikeSliceResponse으로 변경 * feat: 생성 순서대로 Event 반환하는 api 추가 --------- Co-authored-by: 조홍식 <[email protected]>
- Loading branch information
1 parent
2b5e639
commit 2e09f7d
Showing
7 changed files
with
70 additions
and
9 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
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
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
24 changes: 24 additions & 0 deletions
24
src/main/java/org/ktc2/cokaen/wouldyouin/like/api/dto/LikeSliceResponse.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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package org.ktc2.cokaen.wouldyouin.like.api.dto; | ||
|
||
import java.util.List; | ||
import lombok.Builder; | ||
import lombok.Getter; | ||
import org.ktc2.cokaen.wouldyouin._common.api.SliceInfo; | ||
|
||
@Getter | ||
@Builder | ||
public class LikeSliceResponse { | ||
|
||
private List<LikeResponse> likes; | ||
private SliceInfo sliceInfo; | ||
|
||
public static LikeSliceResponse from(List<LikeResponse> likes, int size, Long lastId) { | ||
return LikeSliceResponse.builder() | ||
.likes(likes) | ||
.sliceInfo(SliceInfo.builder() | ||
.sliceSize(size) | ||
.lastId(lastId) | ||
.build()) | ||
.build(); | ||
} | ||
} |
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