Skip to content

Commit

Permalink
style: sonarqube style issue 반영
Browse files Browse the repository at this point in the history
  • Loading branch information
youngsoosoo committed May 17, 2024
1 parent 37e9359 commit 4a20691
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public ResponseEntity<AccountResponseDto> findAccount(

@Operation(summary = "메인 계좌 충전")
@PostMapping("/recharge")
public ResponseEntity rechargeAccount(
public ResponseEntity<Void> rechargeAccount(
@Valid
@RequestBody
RechargeAccountRequestDto rechargeAccountRequestDto
Expand All @@ -43,7 +43,7 @@ public ResponseEntity rechargeAccount(

@Operation(summary = "메인 계좌에서 적금 계좌로 이체")
@PostMapping("/transfer/saving")
public ResponseEntity rechargeAccount(
public ResponseEntity<Void> rechargeAccount(
@Valid
@RequestBody
TransferToOtherAccountRequestDto transferToOtherAccountRequestDto
Expand All @@ -54,7 +54,7 @@ public ResponseEntity rechargeAccount(

@Operation(summary = "사용자의 메인 계좌에서 친구의 메인 계좌로 송금")
@PostMapping("/transfer/regular")
public ResponseEntity transferToOtherAccount(
public ResponseEntity<Void> transferToOtherAccount(
@Valid
@RequestBody
TransferToOtherAccountRequestDto transferToOtherAccountRequestDto
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public class SavingAccountController {

@Operation(summary = "적금 계좌 생성")
@PostMapping("")
public ResponseEntity createAccount(
public ResponseEntity<Void> createAccount(
@Valid
@RequestBody
AccountRequestDto accountRequestDto
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@ public interface SavingAccountRepository extends JpaRepository<SavingAccount, Lo
@Query("""
UPDATE SavingAccount sa SET sa.balance = sa.balance + :balance
WHERE sa.id = :id
""")
""")
void transferSavingAccount(Long id, Long balance);
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
import org.c4marathon.assignment.account.dto.request.TransferToOtherAccountRequestDto;
import org.c4marathon.assignment.account.dto.response.AccountResponseDto;
import org.c4marathon.assignment.account.entity.Account;
import org.c4marathon.assignment.account.entity.SavingAccount;
import org.c4marathon.assignment.account.entity.Type;
import org.c4marathon.assignment.account.repository.AccountRepository;
import org.c4marathon.assignment.account.repository.SavingAccountRepository;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
import org.springframework.security.core.context.SecurityContextHolder;

@ExtendWith(MockitoExtension.class)
public class SecurityServiceTest {
class SecurityServiceTest {

@InjectMocks
private SecurityService securityService;
Expand Down

0 comments on commit 4a20691

Please sign in to comment.