作者 李宇航

合并分支 'lyh-server' 到 'master'

gx企业产品库



查看合并请求 !1575
  1 +<?php
  2 +/**
  3 + * @remark :
  4 + * @name :EnterpriseProductController.php
  5 + * @author :lyh
  6 + * @method :post
  7 + * @time :2025/3/26 11:05
  8 + */
  9 +
  10 +namespace App\Http\Logic\Bside\SeoSetting;
  11 +
  12 +use App\Enums\Common\Code;
  13 +use App\Http\Controllers\Bside\BaseController;
  14 +use App\Models\Project\EnterpriseProduct;
  15 +
  16 +/**
  17 + * @remark :企业产品库
  18 + * @name :EnterpriseProductController
  19 + * @author :lyh
  20 + * @method :post
  21 + * @time :2025/3/26 11:05
  22 + */
  23 +class EnterpriseProductController extends BaseController
  24 +{
  25 + /**
  26 + * @remark :获取产品库
  27 + * @name :getEnterProduct
  28 + * @author :lyh
  29 + * @method :post
  30 + * @time :2025/3/26 11:06
  31 + */
  32 + public function getEnterProduct(EnterpriseProduct $enterpriseProduct){
  33 + $this->map['project_id'] = $this->user['project_id'];
  34 + $data = $enterpriseProduct->list($this->map,$this->page,$this->row);
  35 + $this->response('success',Code::SUCCESS,$data);
  36 + }
  37 +}
@@ -700,6 +700,11 @@ Route::middleware(['bloginauth'])->group(function () { @@ -700,6 +700,11 @@ Route::middleware(['bloginauth'])->group(function () {
700 Route::prefix('google_keyword_insight')->group(function () { 700 Route::prefix('google_keyword_insight')->group(function () {
701 Route::any('/getKeywordInsight', [\App\Http\Controllers\Bside\GoogleKeywordInsight\GoogleKeywordInsightController::class, 'getKeywordInsight'])->name('google_keyword_insight_getKeywordInsight'); 701 Route::any('/getKeywordInsight', [\App\Http\Controllers\Bside\GoogleKeywordInsight\GoogleKeywordInsightController::class, 'getKeywordInsight'])->name('google_keyword_insight_getKeywordInsight');
702 }); 702 });
  703 +
  704 + //企业产品库
  705 + Route::prefix('enterprise_product')->group(function () {
  706 + Route::any('/getEnterProduct', [\App\Http\Logic\Bside\SeoSetting\EnterpriseProductController::class, 'getEnterProduct'])->name('enterprise_product_getEnterProduct');
  707 + });
703 }); 708 });
704 //无需登录验证的路由组 709 //无需登录验证的路由组
705 Route::group([], function () { 710 Route::group([], function () {