feat(API): 카드 거래 등록/수정/삭제 API 추가

- CardTransactionService: store, update, destroy 메서드 추가
- CardTransactionController: store, update, destroy 메서드 추가
- routes/api.php: POST, PUT/{id}, DELETE/{id} 라우트 추가

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-01-22 20:49:29 +09:00
parent 57229b3cc6
commit f85e070913
3 changed files with 134 additions and 1 deletions

View File

@@ -590,12 +590,15 @@
Route::get('/{clientId}', [VendorLedgerController::class, 'show'])->whereNumber('clientId')->name('v1.vendor-ledger.show');
});
// Card Transaction API (카드 거래 조회)
// Card Transaction API (카드 거래)
Route::prefix('card-transactions')->group(function () {
Route::get('', [CardTransactionController::class, 'index'])->name('v1.card-transactions.index');
Route::get('/summary', [CardTransactionController::class, 'summary'])->name('v1.card-transactions.summary');
Route::post('', [CardTransactionController::class, 'store'])->name('v1.card-transactions.store');
Route::put('/bulk-update-account', [CardTransactionController::class, 'bulkUpdateAccountCode'])->name('v1.card-transactions.bulk-update-account');
Route::get('/{id}', [CardTransactionController::class, 'show'])->whereNumber('id')->name('v1.card-transactions.show');
Route::put('/{id}', [CardTransactionController::class, 'update'])->whereNumber('id')->name('v1.card-transactions.update');
Route::delete('/{id}', [CardTransactionController::class, 'destroy'])->whereNumber('id')->name('v1.card-transactions.destroy');
});
// Bank Transaction API (은행 거래 조회)