作者 lyh

gx

  1 +<?php
  2 +/**
  3 + * @remark :
  4 + * @name :AllProjectController.php
  5 + * @author :lyh
  6 + * @method :post
  7 + * @time :2024/11/12 9:34
  8 + */
  9 +
  10 +namespace App\Http\Controllers\Aside\Project;
  11 +
  12 +use App\Enums\Common\Code;
  13 +use App\Http\Controllers\Aside\BaseController;
  14 +use App\Models\Project\CountAllProject;
  15 +
  16 +/**
  17 + * @remark :统计所有项目(4.0,5.0,6.0)
  18 + * @name :AllProjectController
  19 + * @author :lyh
  20 + * @method :post
  21 + * @time :2024/11/12 9:34
  22 + */
  23 +class AllProjectController extends BaseController
  24 +{
  25 + /**
  26 + * @remark :统计所有项目列表
  27 + * @name :lists
  28 + * @author :lyh
  29 + * @method :post
  30 + * @time :2024/11/12 9:35
  31 + */
  32 + public function lists(CountAllProject $allProject){
  33 + $data = $allProject->lists($this->map,$this->page,$this->row);
  34 + $this->response('success',Code::SUCCESS,$data);
  35 + }
  36 +}
@@ -493,6 +493,11 @@ Route::middleware(['aloginauth'])->group(function () { @@ -493,6 +493,11 @@ Route::middleware(['aloginauth'])->group(function () {
493 Route::any('/fb_relay_detail_list', [Aside\Task\AdsController::class, 'fbRelayDetail'])->name('admin.fb_ads_relay_detail_list'); 493 Route::any('/fb_relay_detail_list', [Aside\Task\AdsController::class, 'fbRelayDetail'])->name('admin.fb_ads_relay_detail_list');
494 Route::any('/fb_relay_count', [Aside\Task\AdsController::class, 'fbRelayCount'])->name('admin.fb_relay_count'); 494 Route::any('/fb_relay_count', [Aside\Task\AdsController::class, 'fbRelayCount'])->name('admin.fb_relay_count');
495 }); 495 });
  496 +
  497 + //统计所有项目相关
  498 + Route::prefix('all_project')->group(function () {
  499 + Route::any('/', [Aside\Project\AllProjectController::class, 'lists'])->name('admin.all_project_lists');
  500 + });
496 }); 501 });
497 502
498 //无需登录验证的路由组 503 //无需登录验证的路由组