소스 검색

获取某个底部导航内容

15313670163 3 달 전
부모
커밋
6a1e2e80bb
5개의 변경된 파일25개의 추가작업 그리고 3개의 파일을 삭제
  1. 17 0
      app/JsonRpc/FooterService.php
  2. 5 0
      app/JsonRpc/FooterServiceInterface.php
  3. 0 0
      runtime/container/scan.cache
  4. 1 1
      runtime/hyperf.pid
  5. 2 2
      vendor/composer/installed.php

+ 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

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 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(),

이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.