소스 검색

Merge branch 'order' into test

zqwang 1 년 전
부모
커밋
6b0ce28ff9
3개의 변경된 파일59개의 추가작업 그리고 0개의 파일을 삭제
  1. 32 0
      modules/Payment/Installer.php
  2. 20 0
      modules/Payment/Providers/PaymentServiceProvider.php
  3. 7 0
      modules/Payment/routes/route.php

+ 32 - 0
modules/Payment/Installer.php

@@ -0,0 +1,32 @@
+<?php
+
+namespace Modules\Payment;
+
+use Catch\Support\Module\Installer as ModuleInstaller;
+use Modules\Payment\Providers\PaymentServiceProvider;
+
+class Installer extends ModuleInstaller
+{
+    protected function info(): array
+    {
+        // TODO: Implement info() method.
+        return [
+            'title' => '支付管理',
+            'name' => 'payment',
+            'path' => 'payment',
+            'keywords' => '支付管理',
+            'description' => '支付管理模块',
+            'provider' => PaymentServiceProvider::class
+        ];
+    }
+
+    protected function requirePackages(): void
+    {
+        // TODO: Implement requirePackages() method.
+    }
+
+    protected function removePackages(): void
+    {
+        // TODO: Implement removePackages() method.
+    }
+}

+ 20 - 0
modules/Payment/Providers/PaymentServiceProvider.php

@@ -0,0 +1,20 @@
+<?php
+
+namespace Modules\Payment\Providers;
+
+use Catch\CatchAdmin;
+use Catch\Providers\CatchModuleServiceProvider;
+
+class PaymentServiceProvider extends CatchModuleServiceProvider
+{
+    /**
+     * route path
+     *
+     * @return string
+     */
+    public function moduleName(): string
+    {
+        // TODO: Implement path() method.
+        return 'payment';
+    }
+}

+ 7 - 0
modules/Payment/routes/route.php

@@ -0,0 +1,7 @@
+<?php
+
+use Illuminate\Support\Facades\Route;
+
+Route::prefix('{module}')->group(function(){
+    //next
+});