-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FEATURE] 유저 취향 답변 조회 response dto 변경 (#133)
* feat : 유저 취향 답변 조회 response dto 변경 #132 * feat : 유저 취향 상자, 유저 프로필 정보 조회 API 응답 VO 변경 #132 * spotless apply * merge dev * spotless apply
- Loading branch information
1 parent
4e391b3
commit 8636ae2
Showing
50 changed files
with
569 additions
and
315 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
68 changes: 68 additions & 0 deletions
68
Api/src/main/java/tify/server/api/product/model/vo/ProductRetrieveVo.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,68 @@ | ||
package tify.server.api.product.model.vo; | ||
|
||
|
||
import io.swagger.v3.oas.annotations.media.Schema; | ||
import lombok.Builder; | ||
import lombok.Getter; | ||
import tify.server.domain.domains.product.dto.ProductRetrieveDTO; | ||
import tify.server.domain.domains.user.domain.DetailCategory; | ||
import tify.server.domain.domains.user.domain.LargeCategory; | ||
import tify.server.domain.domains.user.domain.SmallCategory; | ||
|
||
@Getter | ||
@Builder | ||
public class ProductRetrieveVo { | ||
|
||
@Schema(description = "상품의 pk 값입니다.") | ||
private final Long productId; | ||
|
||
@Schema(description = "상품의 이름입니다.") | ||
private final String name; | ||
|
||
@Schema(description = "상품의 브랜드입니다.") | ||
private final String brand; | ||
|
||
@Schema(description = "상품의 속성입니다.", example = "포근한") | ||
private final String characteristic; | ||
|
||
@Schema(description = "상품의 가격입니다.") | ||
private final Long price; | ||
|
||
@Schema(description = "상품의 옵션입니다.", example = "브라운, 옐로우") | ||
private final String productOption; | ||
|
||
@Schema(description = "상품의 이미지 url입니다.") | ||
private final String imageUrl; | ||
|
||
@Schema(description = "상품의 구매 링크입니다.") | ||
private final String siteUrl; | ||
|
||
@Schema(description = "상품의 대분류입니다.", implementation = LargeCategory.class) | ||
private final LargeCategory largeCategory; | ||
|
||
@Schema(description = "상품의 중분류입니다.", implementation = SmallCategory.class) | ||
private final SmallCategory smallCategory; | ||
|
||
@Schema(description = "상품의 소분류입니다.", implementation = DetailCategory.class) | ||
private final DetailCategory detailCategory; | ||
|
||
@Schema(description = "상품 질문의 카테고리 이름입니다.", example = "BMLIP") | ||
private final String categoryName; | ||
|
||
public static ProductRetrieveVo from(ProductRetrieveDTO dto) { | ||
return ProductRetrieveVo.builder() | ||
.productId(dto.getProduct().getId()) | ||
.name(dto.getProduct().getName()) | ||
.brand(dto.getProduct().getBrand()) | ||
.characteristic(dto.getProduct().getCharacteristic()) | ||
.price(dto.getProduct().getPrice()) | ||
.productOption(dto.getProduct().getProductOption()) | ||
.imageUrl(dto.getProduct().getImageUrl()) | ||
.siteUrl(dto.getProduct().getCrawlUrl()) | ||
.largeCategory(dto.getFavorQuestionCategory().getLargeCategory()) | ||
.smallCategory(dto.getFavorQuestionCategory().getSmallCategory()) | ||
.detailCategory(dto.getFavorQuestionCategory().getDetailCategory()) | ||
.categoryName(dto.getFavorQuestionCategory().getName()) | ||
.build(); | ||
} | ||
} |
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
15 changes: 15 additions & 0 deletions
15
Api/src/main/java/tify/server/api/user/model/dto/UserFavorDto.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 tify.server.api.user.model.dto; | ||
|
||
|
||
import io.swagger.v3.oas.annotations.media.Schema; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
import tify.server.domain.domains.user.domain.DetailCategory; | ||
|
||
@Getter | ||
@NoArgsConstructor | ||
public class UserFavorDto { | ||
|
||
@Schema(description = "취향의 종류입니다.", example = "LIP") | ||
private DetailCategory detailCategory; | ||
} |
15 changes: 15 additions & 0 deletions
15
Api/src/main/java/tify/server/api/user/model/dto/request/PatchUserFavorRequest.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 tify.server.api.user.model.dto.request; | ||
|
||
|
||
import java.util.List; | ||
import javax.validation.constraints.NotNull; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
import tify.server.api.user.model.dto.UserFavorDto; | ||
|
||
@Getter | ||
@NoArgsConstructor | ||
public class PatchUserFavorRequest { | ||
|
||
@NotNull private List<UserFavorDto> userFavorDtoList; | ||
} |
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.