mxf 5 年之前
父節點
當前提交
99b4eee808
共有 1 個文件被更改,包括 20 次插入0 次删除
  1. 20 0
      app/api/controller/company/SectionController.php

+ 20 - 0
app/api/controller/company/SectionController.php

@@ -0,0 +1,20 @@
+<?php
+
+namespace app\api\controller\company;
+
+use app\models\section\section;
+use app\Request;
+
+class SectionController
+{
+    public function list(Request $request)
+    {
+        $where = UtilService::getMore([
+            [['page', 'd'], 1],
+            [['limit', 'd'], 15],
+            [['status', 0], 1]
+        ], $request);
+        $list = SectionModel::systemPage($where);
+        return app('json')->successful($list);
+    }
+}