- 예산: 예상 수입을 해당 월별로 조회/저장(월 이동 시 갱신) - 계좌 관리: SortableJS 드래그 정렬(터치 지원), 타입별 순서 저장 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -65,11 +65,11 @@ export const accountApi = {
|
||||
budgetPeriod({ unit, year, month }) {
|
||||
return http.get('/account/budgets/period', { params: { unit, year, month } })
|
||||
},
|
||||
expectedIncome() {
|
||||
return http.get('/account/budgets/income')
|
||||
expectedIncome({ year, month }) {
|
||||
return http.get('/account/budgets/income', { params: { year, month } })
|
||||
},
|
||||
setExpectedIncome(expectedIncome) {
|
||||
return http.put('/account/budgets/income', { expectedIncome })
|
||||
setExpectedIncome({ year, month, expectedIncome }) {
|
||||
return http.put('/account/budgets/income', { expectedIncome }, { params: { year, month } })
|
||||
},
|
||||
createBudget(payload) {
|
||||
return http.post('/account/budgets', payload)
|
||||
@@ -89,6 +89,9 @@ export const accountApi = {
|
||||
removeWallet(id) {
|
||||
return http.delete(`/account/wallets/${id}`)
|
||||
},
|
||||
reorderWallets(type, ids) {
|
||||
return http.put('/account/wallets/reorder', { type, ids })
|
||||
},
|
||||
walletEntries(id) {
|
||||
return http.get(`/account/wallets/${id}/entries`)
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user