mxf 4 years ago
parent
commit
99b4eee808
1 changed files with 20 additions and 0 deletions
  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);
+    }
+}