Browse Source

Merge branch 'master' of http://git.liuniu946.com/15669368801/atour_boofly_mush_api

15669368801 4 years ago
parent
commit
591b954d90
2 changed files with 23 additions and 0 deletions
  1. 20 0
      app/api/controller/company/SectionController.php
  2. 3 0
      app/api/route/route.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);
+    }
+}

+ 3 - 0
app/api/route/route.php

@@ -29,6 +29,9 @@ Route::group(function () {
     Route::get('wechat/bindPush', 'wechat.WechatController/bindPush')->name('bindPush');//公众号绑定推送
     Route::post('wechat/UserInfo', 'wechat.WechatController/addUserInfo')->name('addUserInfo');//用户信息入库
     Route::get('wechat/reportList', 'wechat.WechatController/getReportList')->name('getReportList');//统计报表列表
+
+//公司信息
+    Route::get('section', 'company.SectionController/list')->name('getSectionList');//部门列表
 })->middleware(\app\http\middleware\AllowOriginMiddleware::class);
 
 Route::any('wechat/serve', 'wechat.WechatController/serve');//公众号服务