Jelajahi Sumber

获取某个底部导航内容

15313670163 5 bulan lalu
induk
melakukan
b67ad6b18c

+ 17 - 0
app/JsonRpc/FooterService.php

@@ -187,6 +187,23 @@ class FooterService implements FooterServiceInterface
             ];
             return Result::success($result);
         }
+    }
+     /**
+     * 获取某个底部导航(列表)内容
+     * @param array $data
+     * @return array
+     */
+    public function getOneFooterContent(array $data): array
+    {      
+        $result = FooterContent::where('footer_content.id', $data['id'])
+        ->leftJoin('footer_category','footer_category.id','fcat_id')
+        ->select('footer_content.*','footer_category.type')
+        ->first();   
+        if(empty($result)){
+            return Result::error("请输入正确的底部导航内容id!");
+        }else{
+            return Result::success($result);
+        }
     }
     /**
      * 编辑底部导航(列表)内容

+ 5 - 0
app/JsonRpc/FooterServiceInterface.php

@@ -34,6 +34,11 @@ interface FooterServiceInterface
      * @return array
      */
     public function addFooterContent(array $data): array;
+    /**
+     * @param int $data
+     * @return array
+     */
+    public function getOneFooterContent(array $data): array;
     /**
      * @param int $data
      * @return array

File diff ditekan karena terlalu besar
+ 0 - 0
runtime/container/scan.cache


+ 0 - 1
runtime/hyperf.pid

@@ -1 +0,0 @@
-9252

+ 8 - 0
vendor/composer/installed.php

@@ -3,7 +3,11 @@
         'name' => 'hyperf/hyperf-skeleton',
         'pretty_version' => 'dev-master',
         'version' => 'dev-master',
+<<<<<<< HEAD
         'reference' => '4bdced194db9377c80023b13d9edf9b6bc342d41',
+=======
+        'reference' => '452c3aad61513066c145fd9a77d1bae540191494',
+>>>>>>> 20241213_fr_diyweb
         'type' => 'project',
         'install_path' => __DIR__ . '/../../',
         'aliases' => array(),
@@ -439,7 +443,11 @@
         'hyperf/hyperf-skeleton' => array(
             'pretty_version' => 'dev-master',
             'version' => 'dev-master',
+<<<<<<< HEAD
             'reference' => '4bdced194db9377c80023b13d9edf9b6bc342d41',
+=======
+            'reference' => '452c3aad61513066c145fd9a77d1bae540191494',
+>>>>>>> 20241213_fr_diyweb
             'type' => 'project',
             'install_path' => __DIR__ . '/../../',
             'aliases' => array(),

Beberapa file tidak ditampilkan karena terlalu banyak file yang berubah dalam diff ini