-
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.
가격, 용량 정보 제거 카테고리 설명 대신 태그로 대체 thumbnailUrl -> thumbnail
- Loading branch information
Showing
24 changed files
with
69 additions
and
149 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
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
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
13 changes: 1 addition & 12 deletions
13
...api/src/main/java/io/perfume/api/perfume/application/port/in/dto/SimplePerfumeResult.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,19 +1,8 @@ | ||
package io.perfume.api.perfume.application.port.in.dto; | ||
|
||
import io.perfume.api.brand.application.port.in.dto.BrandForPerfumeResult; | ||
import io.perfume.api.perfume.domain.Concentration; | ||
import io.perfume.api.perfume.domain.Perfume; | ||
import lombok.Builder; | ||
|
||
@Builder | ||
public record SimplePerfumeResult(Long id, String name, Concentration concentration, String brandName, String thumbnailUrl) { | ||
public static SimplePerfumeResult from(Perfume perfume, BrandForPerfumeResult brandResult) { | ||
return SimplePerfumeResult.builder() | ||
.id(perfume.getId()) | ||
.name(perfume.getName()) | ||
.concentration(perfume.getConcentration()) | ||
.brandName(brandResult.name()) | ||
.thumbnailUrl(null) // TODO: 썸네일 추가 | ||
.build(); | ||
} | ||
public record SimplePerfumeResult(Long id, String name, Concentration concentration, String brandName, String thumbnail) { | ||
} |
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
2 changes: 1 addition & 1 deletion
2
perfume-api/src/main/java/io/perfume/api/user/application/port/in/dto/UserProfileResult.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,4 +1,4 @@ | ||
package io.perfume.api.user.application.port.in.dto; | ||
|
||
public record UserProfileResult(Long userId, String username, String thumbnailUrl) { | ||
public record UserProfileResult(Long userId, String username, String thumbnail) { | ||
} |
2 changes: 2 additions & 0 deletions
2
perfume-api/src/main/resources/db/migration/v1.0.7__remove_columns.sql
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,2 @@ | ||
alter table perfume drop price; | ||
alter table perfume drop capacity; |
Oops, something went wrong.