-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FEAT] 찜한 스토어 조회(인기순) - #27
- Loading branch information
Showing
15 changed files
with
363 additions
and
100 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
17 changes: 0 additions & 17 deletions
17
cakey-api/src/main/java/com/cakey/storelikes/dto/StoreLatestLikedByUser.java
This file was deleted.
Oops, something went wrong.
17 changes: 17 additions & 0 deletions
17
cakey-api/src/main/java/com/cakey/storelikes/dto/StoreLatestLikedByUserRes.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,17 @@ | ||
package com.cakey.storelikes.dto; | ||
|
||
import com.cakey.store.dto.StoreInfo; | ||
|
||
import java.util.List; | ||
|
||
public record StoreLatestLikedByUserRes( | ||
Long lastStoreId, | ||
long storeCount, | ||
List<StoreInfo> stores | ||
) { | ||
public static StoreLatestLikedByUserRes fromStoreInfo(final Long lastStoreId, | ||
final long storeCount, | ||
final List<StoreInfo> stores) { | ||
return new StoreLatestLikedByUserRes(lastStoreId, storeCount, stores); | ||
} | ||
} |
27 changes: 27 additions & 0 deletions
27
cakey-api/src/main/java/com/cakey/storelikes/dto/StorePopularityLikedByUserRes.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,27 @@ | ||
package com.cakey.storelikes.dto; | ||
|
||
import com.cakey.store.dto.StoreInfo; | ||
import lombok.AccessLevel; | ||
import lombok.Builder; | ||
|
||
import java.util.List; | ||
|
||
@Builder(access = AccessLevel.PRIVATE) | ||
public record StorePopularityLikedByUserRes( | ||
long nextLikesCursor, | ||
Long nexStoreId, | ||
long storeCount, | ||
List<StoreInfo> stores | ||
) { | ||
public static StorePopularityLikedByUserRes of(final long nextLikesCursor, | ||
final long nexStoreId, | ||
final long storeCount, | ||
final List<StoreInfo> stores) { | ||
return StorePopularityLikedByUserRes.builder() | ||
.nextLikesCursor(nextLikesCursor) | ||
.nexStoreId(nexStoreId) | ||
.storeCount(storeCount) | ||
.stores(stores) | ||
.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
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
Oops, something went wrong.