Skip to content

Commit

Permalink
[Hotfix/#109] Response Entity Type 수정 (#113)
Browse files Browse the repository at this point in the history
* [Refactor] #109 계좌 번호를 받아 잔액을 반환하도록 변경

* [Refactor]

* [Feat] #109 Add DTOs

* [Fix] #109 Respose Type 변ã�경
  • Loading branch information
Hyunuk17 authored Aug 31, 2024
1 parent b19b097 commit c343093
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -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;
Expand Down Expand Up @@ -79,7 +80,7 @@ public ResponseEntity<Void> updatePayment(@RequestBody PaymentRequest paymentReq

// TODO: 잔액 조회
@PostMapping("/balance")
public ResponseEntity<?> getTransactionBalance(@RequestBody AccountBalanceRequest accountBalanceRequest) {
public ResponseEntity<AccountBalanceResponse> getTransactionBalance(@RequestBody AccountBalanceRequest accountBalanceRequest) {
log.info("TransactionController.getTransactionBalance() is called.");

return ResponseEntity.ok(transactionService.findByAccountNumber(accountBalanceRequest));
Expand Down

0 comments on commit c343093

Please sign in to comment.