feat(service): huỷ dịch vụ, SSL, đổi mật khẩu hosting, lịch sử thanh toán theo hình thức
- Lịch sử thanh toán hoá đơn trả thêm `method` (tự động gia hạn / số dư / admin / chuyển khoản / hoàn tiền), bỏ đuôi `(method)` khỏi ghi chú - `DnsServer::panelUrl()` = https://<domain>/ dùng cho email cấp hosting và nút Plesk của khách - Order item trả thêm `uuid`/`type` của dịch vụ để FE dẫn tới trang quản lý - Yêu cầu huỷ dịch vụ, chứng chỉ SSL, lịch sử gia hạn, đổi mật khẩu hosting cho khách Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 5.5
parent
a6b641015e
commit
b44a88bb52
+16
-5
@@ -1,11 +1,16 @@
|
||||
<?php
|
||||
|
||||
use App\Support\ServiceGroup;
|
||||
use App\Http\Controllers\Api\Setting\SettingController;
|
||||
use App\Http\Controllers\Api\Client\ClientController;
|
||||
use App\Http\Controllers\Api\Client\Domain\DomainOrderController as ClientDomainOrderController;
|
||||
use App\Http\Controllers\Api\Client\Domain\DomainPricingController;
|
||||
use App\Http\Controllers\Api\Client\Service\DomainController as ClientDomainController;
|
||||
use App\Http\Controllers\Api\Client\Service\ServiceController as ClientServiceController;
|
||||
use App\Http\Controllers\Api\Client\Service\SslArchiveController;
|
||||
use App\Http\Controllers\Api\Client\Service\ServiceRenewalHistoryController;
|
||||
use App\Http\Controllers\Api\Client\Service\HostingPasswordController;
|
||||
use App\Http\Controllers\Api\Client\Service\ServiceCancellationController;
|
||||
use App\Http\Controllers\Api\Service\CouponPreviewController;
|
||||
use App\Http\Controllers\Api\Service\OrderControllerRefactor;
|
||||
use App\Http\Controllers\Api\Service\ProductCategoryController;
|
||||
@@ -122,15 +127,21 @@ Route::prefix('v1')
|
||||
Route::get('hosting', 'indexHosting')->name('hosting.list');
|
||||
Route::get('web-design', 'indexWebDesign')->name('web-design.list');
|
||||
Route::get('domain', 'indexDomain')->name('domain.list');
|
||||
Route::get('{uuid}', 'getDetail')->middleware('seal.response:always')->name('detail');
|
||||
Route::get('{uuid}/vm-password', 'getVmPassword')->middleware(['throttle:20,1', 'seal.response:always'])->name('vm-password');
|
||||
Route::get('{uuid}/console-ticket', 'getConsoleTicket')->middleware('seal.response:always')->name('console-ticket');
|
||||
Route::get('group/{group}', 'indexGroup')->whereIn('group', ServiceGroup::ALL)->name('group.list');
|
||||
Route::get('{uuid}', 'getDetail')->name('detail');
|
||||
Route::get('{uuid}/attachments/{attachmentId}', 'downloadAttachment')->whereNumber('attachmentId')->name('attachments.download');
|
||||
Route::post('{uuid}/cancel-request', [ServiceCancellationController::class, 'store'])->middleware('throttle:5,1')->name('cancel-request.store');
|
||||
Route::delete('{uuid}/cancel-request', [ServiceCancellationController::class, 'destroy'])->name('cancel-request.destroy');
|
||||
Route::get('{uuid}/renewals', ServiceRenewalHistoryController::class)->name('renewals');
|
||||
Route::get('{uuid}/ssl-archive', SslArchiveController::class)->name('ssl-archive');
|
||||
Route::put('{uuid}/hosting-password', HostingPasswordController::class)->middleware('throttle:5,1')->name('hosting-password.update');
|
||||
Route::get('{uuid}/console-ticket', 'getConsoleTicket')->name('console-ticket');
|
||||
Route::get('{uuid}/available-os', 'getAvailableOs')->name('available-os');
|
||||
Route::post('{uuid}/rebuild', 'rebuild')->name('rebuild');
|
||||
Route::patch('{uuid}/auto-renew', 'updateAutoRenew')->name('auto-renew.update');
|
||||
});
|
||||
|
||||
Route::middleware(['api.auth', 'seal.response:always'])
|
||||
Route::middleware(['api.auth'])
|
||||
->get('get-ticket-console', [ClientServiceController::class, 'getTicketByOrderNum'])
|
||||
->name('console-ticket');
|
||||
|
||||
@@ -325,7 +336,7 @@ Route::prefix('v1/system')
|
||||
Route::post('vm-change-ip', 'changeIp')->name('vm.change-ip');
|
||||
Route::post('vm-change-port', 'changePort')->name('vm.change-port');
|
||||
Route::post('vm-change-password', 'changePassword')->name('vm.change-password');
|
||||
Route::get('get-ticket-console', 'consoleTicket')->middleware('seal.response:always')->name('vm.console-ticket');
|
||||
Route::get('get-ticket-console', 'consoleTicket')->name('vm.console-ticket');
|
||||
Route::post('vm-restart', 'restart')->name('vm.restart');
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user