Explorar el Código

创建短剧cp管理模块

zqwang hace 2 años
padre
commit
3ebc92e63b

+ 32 - 0
modules/CpManage/Installer.php

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

+ 16 - 0
modules/CpManage/Models/DaunJuCpSubscribeStatisticData.php

@@ -0,0 +1,16 @@
+<?php
+
+namespace Modules\CpManage\Models;
+
+use Catch\Base\CatchModel as Model;
+
+
+class DaunJuCpSubscribeStatisticData extends Model
+{
+    protected $table = 'daunju_cp_subscribe_statistic_data';
+
+    protected $fillable = [
+        'id', 'bid', 'calculate_date', 'settlement_date', 'month', 'cp_name', 'yesterday_available_amount', 'yesterday_final_amount', 'yesterday_total_coins', 'book_settlement_type', 'data_source_id', 'data_source_from', 'data_source_bid', 'created_at', 'updated_at',
+    ];
+
+}

+ 16 - 0
modules/CpManage/Models/DuanJuCpBookMonthFinalAmounts.php

@@ -0,0 +1,16 @@
+<?php
+
+namespace Modules\CpManage\Models;
+
+use Catch\Base\CatchModel as Model;
+
+
+class DuanJuCpBookMonthFinalAmounts extends Model
+{
+    protected $table = 'duanju_cp_book_month_final_amounts';
+
+    protected $fillable = [
+        'id', 'bid', 'cp_name', 'month', 'final_amount', 'is_enabled', 'created_at', 'updated_at',
+    ];
+
+}

+ 17 - 0
modules/CpManage/Models/DuanJuCpSubscribeMonthStatisticData.php

@@ -0,0 +1,17 @@
+<?php
+
+namespace Modules\CpManage\Models;
+
+use Catch\Base\CatchModel as Model;
+
+
+class DuanJuCpSubscribeMonthStatisticData extends Model
+{
+    protected $table = 'duanju_cp_subscribe_month_statistic_data';
+
+    protected $fillable = [
+        'id', 'month', 'book_num', 'final_amount', 'cp_name', 'final_state', 'final_time', 'created_at', 'updated_at',
+    ];
+
+}
+

+ 16 - 0
modules/CpManage/Models/DuanJuCps.php

@@ -0,0 +1,16 @@
+<?php
+
+namespace Modules\CpManage\Models;
+
+use Catch\Base\CatchModel as Model;
+
+
+class DuanJuCps extends Model
+{
+    protected $table = 'duanju_cps';
+
+    protected $fillable = [
+        'cp_id', 'cp_nick', 'cp_name', 'cp_company', 'manager', 'phone', 'email', 'share_per', 'settlement_type', 'address', 'is_deleted', 'created_at', 'updated_at', 'deleted_at',
+    ];
+
+}

+ 17 - 0
modules/CpManage/Models/DuanJuUserBelongToCp.php

@@ -0,0 +1,17 @@
+<?php
+
+namespace Modules\CpManage\Models;
+
+use Catch\Base\CatchModel as Model;
+
+
+class DuanJuUserBelongToCp extends Model
+{
+    protected $table = 'duanju_user_belong_to_cp';
+
+    protected $fillable = [
+        'id', 'user_id', 'cp_name', 'is_enabled',
+    ];
+
+}
+

+ 20 - 0
modules/CpManage/Providers/CpManageServiceProvider.php

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

+ 9 - 0
modules/CpManage/routes/route.php

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