Skip to content

Commit

Permalink
NABI-257--refactor : cardStatus 필드명 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
BeommoKoo-dev committed Nov 17, 2023
1 parent 9431442 commit cdf4363
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import org.prgrms.nabimarketbe.global.annotation.ValidEnum;

public record CardStatusUpdateRequestDTO(
@ValidEnum(enumClass = CardStatus.class, message = "유효하지 않은 상태입니다.")
CardStatus cardStatus
@ValidEnum(enumClass = CardStatus.class, message = "유효하지 않은 상태입니다.")
CardStatus status
) {
}
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
package org.prgrms.nabimarketbe.domain.card.dto.response;

import java.time.LocalDateTime;
import java.util.List;

import lombok.Builder;
import org.prgrms.nabimarketbe.domain.card.entity.Card;
import org.prgrms.nabimarketbe.domain.card.entity.CardStatus;
import org.prgrms.nabimarketbe.domain.card.entity.TradeType;
Expand All @@ -11,7 +9,8 @@
import org.prgrms.nabimarketbe.domain.category.entity.CategoryEnum;
import org.prgrms.nabimarketbe.domain.item.entity.PriceRange;

import lombok.Builder;
import java.time.LocalDateTime;
import java.util.List;

@Builder
public record CardDetailResponseDTO(
Expand All @@ -26,7 +25,7 @@ public record CardDetailResponseDTO(
Integer viewCount,
PriceRange priceRange,
String content,
CardStatus cardStatus,
CardStatus status,
TradeType tradeType,
String tradeArea,
Integer dibCount,
Expand All @@ -50,7 +49,7 @@ public static CardDetailResponseDTO of(
.viewCount(card.getViewCount())
.priceRange(card.getItem().getPriceRange())
.content(card.getContent())
.cardStatus(card.getStatus())
.status(card.getStatus())
.tradeType(card.getTradeType())
.tradeArea(card.getTradeArea())
.dibCount(card.getDibCount())
Expand Down

0 comments on commit cdf4363

Please sign in to comment.