feat: Implement client payment history endpoint and add type filtering to product category API.

This commit is contained in:
pbao9
2026-03-13 10:38:56 +07:00
parent a388eabe17
commit 5160ac967a
4 changed files with 199 additions and 115 deletions
+4
View File
@@ -34,6 +34,10 @@ Route::prefix('v1')->as('api.')->group(function () {
Route::patch('dich-vu/{id}/auto-renew', 'updateClientServiceAutoRenew')->name('services.autoRenew.update');
});
Route::middleware(['api.auth'])->controller(TransactionController::class)->group(function () {
Route::get('payment-history', 'getClientPaymentHistory')->name('payment-history.list');
});
Route::middleware(['api.auth'])->get('get-ticket-console', function (\Illuminate\Http\Request $request, \App\Http\Services\vCenter $serviceVCenter) {
$orderNum = (string)$request->query('order_num', '');
if ($orderNum === '') {