-
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.
NABI-205--refactor : 8번 api 명세에 맞춰 리팩토링
- Loading branch information
Showing
7 changed files
with
106 additions
and
68 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
13 changes: 13 additions & 0 deletions
13
src/main/java/org/prgrms/nabimarketbe/domain/card/dto/response/CardInfo.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 org.prgrms.nabimarketbe.domain.card.dto.response; | ||
|
||
import lombok.Getter; | ||
import org.prgrms.nabimarketbe.domain.item.entity.PriceRange; | ||
|
||
@Getter | ||
public class CardInfo { | ||
private Long cardId; | ||
private String thumbNail; | ||
private String cardTitle; | ||
private String itemName; | ||
private PriceRange priceRange; | ||
} |
17 changes: 2 additions & 15 deletions
17
.../org/prgrms/nabimarketbe/domain/card/dto/response/SuggestionAvailableCardResponseDTO.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,25 +1,12 @@ | ||
package org.prgrms.nabimarketbe.domain.card.dto.response; | ||
|
||
import org.prgrms.nabimarketbe.domain.item.entity.PriceRange; | ||
import org.prgrms.nabimarketbe.domain.suggestion.entity.SuggestionType; | ||
|
||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
|
||
@Getter | ||
@NoArgsConstructor | ||
public class SuggestionAvailableCardResponseDTO { | ||
private Long cardId; | ||
|
||
private String thumbNail; | ||
|
||
private String itemName; | ||
|
||
private PriceRange priceRange; | ||
|
||
private SuggestionType suggestionType; | ||
private CardInfo cardInfo; | ||
|
||
public void updateSuggestionType(SuggestionType suggestionType) { | ||
this.suggestionType = suggestionType; | ||
} | ||
private SuggestionInfo suggestionInfo; | ||
} |
15 changes: 15 additions & 0 deletions
15
src/main/java/org/prgrms/nabimarketbe/domain/card/dto/response/SuggestionInfo.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; | ||
|
||
import lombok.Getter; | ||
import org.prgrms.nabimarketbe.domain.suggestion.entity.SuggestionStatus; | ||
import org.prgrms.nabimarketbe.domain.suggestion.entity.SuggestionType; | ||
|
||
@Getter | ||
public class SuggestionInfo { | ||
private SuggestionType suggestionType; | ||
private SuggestionStatus suggestionStatus; | ||
|
||
public void updateSuggestionType(SuggestionType suggestionType) { | ||
this.suggestionType = suggestionType; | ||
} | ||
} |
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