zqwang il y a 2 ans
Parent
commit
4f9a0856a5

+ 28 - 0
modules/CpManage/Http/Controllers/DuanJuCpController.php

@@ -0,0 +1,28 @@
+<?php
+/**
+ *  短剧cp管理
+ * @file:CpList.php
+ * @Created by gnitif
+ * @Date: 2023/5/6
+ * @Time: 14:06
+ */
+
+
+namespace Modules\CpManage\Http\Controllers;
+
+use Catch\Base\CatchController as Controller;
+use Catch\Exceptions\FailedException;
+use Illuminate\Http\Request;
+use  Modules\CpManage\Services\DuanJuCpService;
+
+class DuanJuCpController extends Controller
+{
+
+    public function list(Request $request)
+    {
+       $param = $request->all();
+       return   DuanJuCpService::getCpList($param);
+    }
+
+
+}

+ 1 - 1
modules/CpManage/Providers/CpManageServiceProvider.php

@@ -15,6 +15,6 @@ class CpmanageServiceProvider extends CatchModuleServiceProvider
     public function moduleName(): string
     {
         // TODO: Implement path() method.
-        return 'cpManage';
+        return 'cpmanage';
     }
 }

+ 19 - 0
modules/CpManage/Services/DuanJuCpService.php

@@ -0,0 +1,19 @@
+<?php
+/**
+ * 短剧cp管理
+ * @file:DuanJuCpService.php
+ * @Created by gnitif
+ * @Date: 2023/5/6
+ * @Time: 14:11
+ */
+namespace Modules\CpManage\Services;
+
+class DuanJuCpService
+{
+
+    public function getCpList($param){
+
+
+    }
+
+}

+ 2 - 4
modules/CpManage/routes/route.php

@@ -2,8 +2,6 @@
 
 use Illuminate\Support\Facades\Route;
 
-Route::prefix('cp')->group(function(){
+Route::prefix('{module}')->group(function(){
     //next
-
-
-});
+});