rkljw 1 ماه پیش
والد
کامیت
e993b104c0
3فایلهای تغییر یافته به همراه25 افزوده شده و 0 حذف شده
  1. 19 0
      app/JsonRpc/WebsiteService.php
  2. 6 0
      app/JsonRpc/WebsiteServiceInterface.php
  3. 0 0
      runtime/container/scan.cache

+ 19 - 0
app/JsonRpc/WebsiteService.php

@@ -2430,4 +2430,23 @@ class WebsiteService implements WebsiteServiceInterface
         }
     }
 
+    /**
+     * 修改网站栏目排序
+     * @param array $data
+     * @return array
+     */
+    public function upWebsiteCategorySort(array $data): array
+    {
+        $where = [
+            'website_id' => $data['website_id'],
+            'id' => $data['id'],
+        ];
+        $result = WebsiteCategory::where($where)->update($data);
+        if ($result) {
+            return Result::success($result);
+        } else {
+            return Result::error("更新失败", 0);
+        }
+    }
+
 }

+ 6 - 0
app/JsonRpc/WebsiteServiceInterface.php

@@ -109,4 +109,10 @@ interface WebsiteServiceInterface
      */
     public function getAllCategory(array $data): array;
 
+    /**
+     * 修改网站栏目排序
+     * @param array $data
+     * @return array
+     */
+    public function upWebsiteCategorySort(array $data): array;
 }

تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 0 - 0
runtime/container/scan.cache


برخی فایل ها در این مقایسه diff نمایش داده نمی شوند زیرا تعداد فایل ها بسیار زیاد است