Przeglądaj źródła

获取某个底部导航内容

15313670163 3 miesięcy temu
rodzic
commit
6a1e2e80bb

+ 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

Plik diff jest za duży
+ 0 - 0
runtime/container/scan.cache


+ 1 - 1
runtime/hyperf.pid

@@ -1 +1 @@
-9252
+25064

+ 2 - 2
vendor/composer/installed.php

@@ -3,7 +3,7 @@
         'name' => 'hyperf/hyperf-skeleton',
         'pretty_version' => 'dev-master',
         'version' => 'dev-master',
-        'reference' => 'c4c92ee3483e1c5bcad652be05a02e5b2587a966',
+        'reference' => '452c3aad61513066c145fd9a77d1bae540191494',
         'type' => 'project',
         'install_path' => __DIR__ . '/../../',
         'aliases' => array(),
@@ -439,7 +439,7 @@
         'hyperf/hyperf-skeleton' => array(
             'pretty_version' => 'dev-master',
             'version' => 'dev-master',
-            'reference' => 'c4c92ee3483e1c5bcad652be05a02e5b2587a966',
+            'reference' => '452c3aad61513066c145fd9a77d1bae540191494',
             'type' => 'project',
             'install_path' => __DIR__ . '/../../',
             'aliases' => array(),

Niektóre pliki nie zostały wyświetlone z powodu dużej ilości zmienionych plików