SectionController.php 471 B

123456789101112131415161718192021
  1. <?php
  2. namespace app\api\controller\section;
  3. use app\models\section\SectionModel;
  4. use app\Request;
  5. use crmeb\services\UtilService;
  6. class SectionController
  7. {
  8. public function list(Request $request)
  9. {
  10. $where = UtilService::getMore([
  11. [['page', 'd'], 1],
  12. [['limit', 'd'], 15],
  13. [['status', 0], 1]
  14. ], $request);
  15. $list = SectionModel::systemPage($where);
  16. return app('json')->successful($list);
  17. }
  18. }