Skip to content

Commit

Permalink
지출/소비 내역 조회시 카테고리값 타입 반환 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
JungYoonShin committed Aug 20, 2023
1 parent 0ef4122 commit 99ce12f
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,24 +62,24 @@ public Transaction toEntity(AccountBook accountBook){
public static class TransactionResponse{
private Long id;
private Integer type;
private TransactionCategory transactionCategory;
private Integer transactionCategory;
private Integer year;
private Integer month;
private Integer day;
private Long price;
private PayCategory payCategory;
private Integer payCategory;
private String memo;

public static TransactionResponse from(Transaction transaction){
return new TransactionResponse(
transaction.getId(),
transaction.getType(),
transaction.getTransactionCategory(),
transaction.getTransactionCategory().getValue(),
transaction.getYear(),
transaction.getMonth(),
transaction.getDay(),
transaction.getPrice(),
transaction.getPayCategory(),
transaction.getPayCategory().getValue(),
transaction.getCategoryMemo());
}
}
Expand Down

0 comments on commit 99ce12f

Please sign in to comment.