-
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.
feat: 판매자는 경매 상품 목록에서 경매 식별자, 원가, 현재 판매가, 총 제고량, 현재 제고량, 시작시간, 종료시간을 …
…확인할 수 있다. (#186) * feat: 판매자 경매 목록 조회 DTO 생성 * feat: Auction to SellerAuctionSimpleInfo Mapper 변환 메서드 구현 - Mapper#convertToSellerAuctionSimpleInfo 구현 - Mapper#convertToSellerAuctionSimpleInfo 테스트 구현 * feat: SellerAuctionSearchCondition 생성 판매자 경매 상품 목록 조회 SQL 조건 dto * feat: AuctionRepository#findAllBy 구현 - @param SellerAuctionSearchCondition을 가지는 메서드 정의 - FakeAuctionRepository#findAllBy 구현 * feat: AuctionService#getSellerAuctionSimpleInfos 구현 * docs: AuctionService#getSellerAuctionSimpleInfos 주석 추가
- Loading branch information
1 parent
30e288c
commit 2548397
Showing
7 changed files
with
103 additions
and
0 deletions.
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
...in/java/com/wootecam/luckyvickyauction/core/auction/dto/SellerAuctionSearchCondition.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,4 @@ | ||
package com.wootecam.luckyvickyauction.core.auction.dto; | ||
|
||
public record SellerAuctionSearchCondition() { | ||
} |
27 changes: 27 additions & 0 deletions
27
src/main/java/com/wootecam/luckyvickyauction/core/auction/dto/SellerAuctionSimpleInfo.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.wootecam.luckyvickyauction.core.auction.dto; | ||
|
||
import java.time.ZonedDateTime; | ||
|
||
/** | ||
* 판매자 경매 목록 조회시 사용되는 Auction 정보입니다. | ||
* | ||
* @param id 경매 식별자 | ||
* @param title 경매 노출 제목 | ||
* @param originPrice 원가 | ||
* @param currentPrice 현재 가격 | ||
* @param totalStock 총 재고 | ||
* @param currentStock 현재 남은 재고 | ||
* @param startedAt 시작 시간 | ||
* @param finishedAt 종료 시간 | ||
*/ | ||
public record SellerAuctionSimpleInfo( | ||
long id, | ||
String title, | ||
long originPrice, | ||
long currentPrice, | ||
long totalStock, | ||
long currentStock, | ||
ZonedDateTime startedAt, | ||
ZonedDateTime finishedAt | ||
) { | ||
} |
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