Browse Source

fixed:用户端->钱包管理-路由

刘学玺 4 months ago
parent
commit
60c4c71c52
1 changed files with 9 additions and 1 deletions
  1. 9 1
      routes/api.php

+ 9 - 1
routes/api.php

@@ -134,7 +134,6 @@ Route::prefix('client')->group(function () {
             Route::get('{id}/code', [OrderController::class, 'generateCode']);
         });
 
-
         // 团队管理路由
         Route::prefix('team')->group(function () {
             Route::get('list', [MarketDistTeamController::class, 'index'])->name('team.list');
@@ -146,6 +145,15 @@ Route::prefix('client')->group(function () {
 
         // 技师分组
         Route::get('coach-groups', [App\Http\Controllers\Client\CoachGroupController::class, 'index']);
+
+        // 钱包相关
+        Route::prefix('wallet')->group(function () {
+            Route::get('records', [WalletController::class, 'records']);
+            // 取钱包信息
+            Route::get('wallet', [WalletController::class, 'wallet']);
+            // 提现
+            Route::post('withdraw', [WalletController::class, 'withdraw']);
+        });
     });
 });