-
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.
- Loading branch information
Showing
9 changed files
with
98 additions
and
29 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
PORT='5000' | ||
POSTGRES_URL='jdbc:postgresql://localhost:5432/gyeongnam_gyeongmae' | ||
PORT='9000' | ||
POSTGRES_URL='jdbc:postgresql://localhost:5432/gg' | ||
POSTGRES_USER='gg_user' | ||
POSTGRES_PASSWORD='rudskarudaodjemals' | ||
POSTGRES_DB='gg' | ||
POSTGRES_PASSWORD='rudskarudaodjemals' |
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
4 changes: 3 additions & 1 deletion
4
.../gyeongnamgyeongmae/domain/auctionItem/domain/repostiory/AuctionItemRepositoryCustom.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,10 +1,12 @@ | ||
package megabrain.gyeongnamgyeongmae.domain.auctionItem.domain.repostiory; | ||
|
||
import megabrain.gyeongnamgyeongmae.domain.auctionItem.domain.entity.AuctionItem; | ||
import megabrain.gyeongnamgyeongmae.domain.auctionItem.dto.SearchItem.AuctionItemPaginationDto; | ||
import megabrain.gyeongnamgyeongmae.domain.auctionItem.dto.SearchItem.AuctionItemSearchResponse; | ||
import megabrain.gyeongnamgyeongmae.domain.auctionItem.dto.SearchItem.SearchAuctionItemSortedRequest; | ||
import org.springframework.data.domain.Page; | ||
import org.springframework.data.domain.Pageable; | ||
|
||
public interface AuctionItemRepositoryCustom { | ||
Page<AuctionItem> searchAuctionItemPage(SearchAuctionItemSortedRequest searchAuctionItemSortedRequest, Pageable pageable); | ||
AuctionItemSearchResponse searchAuctionItemPage(SearchAuctionItemSortedRequest searchAuctionItemSortedRequest); | ||
} |
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
20 changes: 20 additions & 0 deletions
20
...abrain/gyeongnamgyeongmae/domain/auctionItem/dto/SearchItem/AuctionItemPaginationDto.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,20 @@ | ||
package megabrain.gyeongnamgyeongmae.domain.auctionItem.dto.SearchItem; | ||
|
||
import lombok.Data; | ||
|
||
import javax.validation.constraints.NotEmpty; | ||
|
||
@Data | ||
public class AuctionItemPaginationDto { | ||
|
||
private Long currentPage; | ||
|
||
private Long itemCount; | ||
|
||
@NotEmpty | ||
private Long itemsPerPage = 10L; | ||
|
||
private Long totalItems; | ||
|
||
private Long totalPages; | ||
} |
13 changes: 13 additions & 0 deletions
13
...brain/gyeongnamgyeongmae/domain/auctionItem/dto/SearchItem/AuctionItemSearchResponse.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,13 @@ | ||
package megabrain.gyeongnamgyeongmae.domain.auctionItem.dto.SearchItem; | ||
|
||
import lombok.Data; | ||
import megabrain.gyeongnamgyeongmae.domain.auctionItem.dto.AuctionItemFirstView; | ||
|
||
import java.util.List; | ||
|
||
@Data | ||
public class AuctionItemSearchResponse { | ||
|
||
private List<AuctionItemFirstView> auctionItemFirstViewPage; | ||
private AuctionItemPaginationDto auctionItemPaginationDto; | ||
} |
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
8 changes: 7 additions & 1 deletion
8
...abrain/gyeongnamgyeongmae/domain/auctionItem/service/Search/AuctionItemSearchService.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,10 +1,16 @@ | ||
package megabrain.gyeongnamgyeongmae.domain.auctionItem.service.Search; | ||
|
||
import megabrain.gyeongnamgyeongmae.domain.auctionItem.dto.AuctionItemFirstView; | ||
import megabrain.gyeongnamgyeongmae.domain.auctionItem.dto.SearchItem.AuctionItemPaginationDto; | ||
import megabrain.gyeongnamgyeongmae.domain.auctionItem.dto.SearchItem.AuctionItemSearchResponse; | ||
import megabrain.gyeongnamgyeongmae.domain.auctionItem.dto.SearchItem.SearchAuctionItemSortedRequest; | ||
import org.springframework.data.domain.Page; | ||
import org.springframework.data.domain.Pageable; | ||
import org.springframework.transaction.annotation.Transactional; | ||
|
||
public interface AuctionItemSearchService { | ||
Page<AuctionItemFirstView> findAuctionItembyRequest(SearchAuctionItemSortedRequest searchAuctionItemSortedRequest, Pageable pageable); | ||
|
||
AuctionItemSearchResponse findAuctionItemByRequest( | ||
SearchAuctionItemSortedRequest searchAuctionItemSortedRequest); | ||
|
||
} |
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