feat: Implement client-facing service management API with UUID for services and bulk actions for product services.

This commit is contained in:
pbao9
2026-03-13 15:17:23 +07:00
parent 5160ac967a
commit e0341363f6
16 changed files with 479 additions and 3 deletions
+15
View File
@@ -5,6 +5,7 @@ use App\Http\Controllers\Api\Client\ClientController;
use App\Http\Controllers\Api\Service\OrderController;
use App\Http\Controllers\Api\Service\ProductCategoryController;
use App\Http\Controllers\Api\Service\ServiceController;
use App\Http\Controllers\Api\Client\Service\ServiceController as ServiceClientController;
use App\Http\Controllers\Api\Transaction\TransactionController;
use Illuminate\Support\Facades\Route;
@@ -34,6 +35,18 @@ Route::prefix('v1')->as('api.')->group(function () {
Route::patch('dich-vu/{id}/auto-renew', 'updateClientServiceAutoRenew')->name('services.autoRenew.update');
});
Route::middleware(['api.auth'])->prefix('client-service')->controller(ServiceClientController::class)->as('client-service.')->group(function () {
Route::get('/', 'getService')->name('list');
Route::get('{uuid}', 'getDetail')->name('detail');
});
Route::middleware(['api.auth'])->prefix('service')->controller(ServiceController::class)->as('service.')->group(function () {
Route::get('/', 'getService')->name('list');
Route::get('{uuid}', 'getDetailServiceCustomer')->name('detail');
});
Route::middleware(['api.auth'])->controller(TransactionController::class)->group(function () {
Route::get('payment-history', 'getClientPaymentHistory')->name('payment-history.list');
});
@@ -103,6 +116,8 @@ Route::prefix('v1')->as('api.')->group(function () {
});
});
Route::middleware(['api.auth'])->prefix('orders')->as('orders.')->group(function () {
Route::controller(OrderController::class)->group(function () {
Route::get('/', 'getList')->name('list');