feat: 예상 수입 월별 저장 + 계좌 순서변경 API

- 예상 수입: budget_income(연·월별) 로 변경, GET/PUT 에 year·month
- 계좌: wallet.sort_order + reorder 엔드포인트, 생성 시 맨 뒤 배치

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
ByungCheol
2026-06-01 22:54:23 +09:00
co-authored by Claude Opus 4.8
parent cac9919cc5
commit f5e9b78a14
11 changed files with 93 additions and 24 deletions
@@ -10,6 +10,7 @@ import com.sb.web.account.dto.NetWorthPoint;
import com.sb.web.account.dto.NetWorthResponse;
import com.sb.web.account.dto.PeriodStat;
import com.sb.web.account.dto.RepaymentRequest;
import com.sb.web.account.dto.WalletReorderRequest;
import com.sb.web.account.dto.WalletRequest;
import com.sb.web.account.dto.WalletResponse;
import com.sb.web.account.service.AccountService;
@@ -69,6 +70,14 @@ public class AccountController {
return ResponseEntity.noContent().build();
}
/** 계좌/카드 순서 변경 (드래그앤드랍) */
@PutMapping("/wallets/reorder")
public List<WalletResponse> reorderWallets(
@RequestBody WalletReorderRequest req,
@RequestAttribute(AuthInterceptor.CURRENT_MEMBER) SessionUser current) {
return accountService.reorderWallets(current.getId(), req.getType(), req.getIds());
}
@GetMapping("/networth")
public NetWorthResponse netWorth(
@RequestAttribute(AuthInterceptor.CURRENT_MEMBER) SessionUser current) {