|
@@ -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);
|
|
|
|
|
+ }
|
|
|
|
|
+}
|