Browse Source

网站排序

rkljw 1 month ago
parent
commit
e993b104c0

+ 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;
     public function getAllCategory(array $data): array;
 
 
+    /**
+     * 修改网站栏目排序
+     * @param array $data
+     * @return array
+     */
+    public function upWebsiteCategorySort(array $data): array;
 }
 }

File diff suppressed because it is too large
+ 0 - 0
runtime/container/scan.cache


Some files were not shown because too many files changed in this diff