Skip to content

Commit

Permalink
Merge pull request #32 from SWM-WeLike2Coding/fix/productList
Browse files Browse the repository at this point in the history
fix: 상품 리스트 호출을 위한 dto에 상품 유형 추가
  • Loading branch information
kjungw1025 authored Jul 29, 2024
2 parents 1863e59 + e2dfc30 commit 7b86426
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.wl2c.elswhereproductservice.domain.product.model.dto.list;

import com.querydsl.core.annotations.QueryProjection;
import com.wl2c.elswhereproductservice.domain.product.model.ProductType;
import com.wl2c.elswhereproductservice.domain.product.model.entity.Product;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
Expand All @@ -19,6 +20,9 @@ public class SummarizedProductDto {
@Schema(description = "상품명", example = "oo투자증권 99999")
private final String name;

@Schema(description = "상품 유형", example = "STEP_DOWN or LIZARD or MONTHLY_PAYMENT or ETC")
private final ProductType productType;

@Schema(description = "기초자산", example = "KOSPI200 Index / HSCEI Index / S&P500 Index")
private final String equities;

Expand All @@ -39,6 +43,7 @@ public SummarizedProductDto(Product product) {
this.id = product.getId();
this.issuer = product.getIssuer();
this.name = product.getName();
this.productType = product.getType();
this.equities = product.getEquities();
this.yieldIfConditionsMet = product.getYieldIfConditionsMet();
this.knockIn = product.getKnockIn();
Expand Down

0 comments on commit 7b86426

Please sign in to comment.