-
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.
Merge pull request #48 from team-nabi/NABI-250--beommo-feat--famous-c…
…ards NABI-250--feat : 인기상품 조회 기능 추가
- Loading branch information
Showing
8 changed files
with
149 additions
and
89 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
15 changes: 15 additions & 0 deletions
15
...va/org/prgrms/nabimarketbe/domain/card/dto/response/projection/CardFamousResponseDTO.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,15 @@ | ||
package org.prgrms.nabimarketbe.domain.card.dto.response.projection; | ||
|
||
import lombok.Getter; | ||
import org.prgrms.nabimarketbe.domain.item.entity.PriceRange; | ||
|
||
@Getter | ||
public class CardFamousResponseDTO { | ||
private Long cardId; | ||
|
||
private String itemName; | ||
|
||
private PriceRange priceRange; | ||
|
||
private String thumbnail; | ||
} |
31 changes: 17 additions & 14 deletions
31
src/main/java/org/prgrms/nabimarketbe/domain/card/repository/CardRepositoryCustom.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,33 +1,36 @@ | ||
package org.prgrms.nabimarketbe.domain.card.repository; | ||
|
||
import java.util.List; | ||
|
||
import org.prgrms.nabimarketbe.domain.card.dto.response.projection.CardFamousResponseDTO; | ||
import org.prgrms.nabimarketbe.domain.card.dto.response.wrapper.CardPagingResponseDTO; | ||
import org.prgrms.nabimarketbe.domain.card.dto.response.wrapper.CardSuggestionResponseDTO; | ||
import org.prgrms.nabimarketbe.domain.card.entity.CardStatus; | ||
import org.prgrms.nabimarketbe.domain.category.entity.CategoryEnum; | ||
import org.prgrms.nabimarketbe.domain.item.entity.PriceRange; | ||
import org.prgrms.nabimarketbe.domain.user.entity.User; | ||
|
||
import java.util.List; | ||
|
||
public interface CardRepositoryCustom { | ||
CardPagingResponseDTO getCardsByCondition( | ||
CategoryEnum category, | ||
PriceRange priceRange, | ||
List<CardStatus> status, | ||
String title, | ||
String cursorId, | ||
Integer size | ||
CategoryEnum category, | ||
PriceRange priceRange, | ||
List<CardStatus> status, | ||
String title, | ||
String cursorId, | ||
Integer size | ||
); | ||
|
||
CardPagingResponseDTO getMyCardsByStatus( | ||
User user, | ||
CardStatus status, | ||
String cursorId, | ||
Integer size | ||
User user, | ||
CardStatus status, | ||
String cursorId, | ||
Integer size | ||
); | ||
|
||
List<CardSuggestionResponseDTO> getSuggestionAvailableCards( | ||
Long userId, | ||
Long targetCardId | ||
Long userId, | ||
Long targetCardId | ||
); | ||
|
||
List<CardFamousResponseDTO> getCardsByPopularity(); | ||
} |
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.