From c343093ba612b04d0a2a681f733ce60098d5e3f7 Mon Sep 17 00:00:00 2001 From: Hyunuk17 <102630597+Hyunuk17@users.noreply.github.com> Date: Sat, 31 Aug 2024 14:11:08 +0900 Subject: [PATCH] =?UTF-8?q?[Hotfix/#109]=20Response=20Entity=20Type=20?= =?UTF-8?q?=EC=88=98=EC=A0=95=20(#113)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * [Refactor] #109 계좌 번호를 받아 잔액을 반환하도록 변경 * [Refactor] * [Feat] #109 Add DTOs * [Fix] #109 Respose Type 변ã„경 --- .../domain/transaction/controller/TransactionController.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/shinhan_hackathon/the_family_guardian/domain/transaction/controller/TransactionController.java b/src/main/java/com/shinhan_hackathon/the_family_guardian/domain/transaction/controller/TransactionController.java index 68b67ac..52ba759 100644 --- a/src/main/java/com/shinhan_hackathon/the_family_guardian/domain/transaction/controller/TransactionController.java +++ b/src/main/java/com/shinhan_hackathon/the_family_guardian/domain/transaction/controller/TransactionController.java @@ -1,5 +1,6 @@ package com.shinhan_hackathon.the_family_guardian.domain.transaction.controller; +import com.shinhan_hackathon.the_family_guardian.domain.transaction.dto.AccountBalanceResponse; import com.shinhan_hackathon.the_family_guardian.domain.transaction.dto.DepositRequest; import com.shinhan_hackathon.the_family_guardian.domain.transaction.dto.PaymentRequest; import com.shinhan_hackathon.the_family_guardian.domain.transaction.dto.AccountBalanceRequest; @@ -79,7 +80,7 @@ public ResponseEntity updatePayment(@RequestBody PaymentRequest paymentReq // TODO: 잔액 조회 @PostMapping("/balance") - public ResponseEntity getTransactionBalance(@RequestBody AccountBalanceRequest accountBalanceRequest) { + public ResponseEntity getTransactionBalance(@RequestBody AccountBalanceRequest accountBalanceRequest) { log.info("TransactionController.getTransactionBalance() is called."); return ResponseEntity.ok(transactionService.findByAccountNumber(accountBalanceRequest));