Company.php 643 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. namespace app\adminapi\controller\v1\company;
  3. use app\adminapi\controller\AuthController;
  4. use crmeb\services\{UtilService as Util};
  5. use app\models\section\SectionModel;
  6. use app\models\company\CompanyModel;
  7. use think\Request;
  8. class Company extends AuthController
  9. {
  10. /**
  11. * 显示资源列表
  12. *
  13. * @return \think\Response
  14. */
  15. public function index()
  16. {
  17. $where = Util::getMore([
  18. ['title', ''],
  19. ['sid', 0],
  20. ['page', 1],
  21. ['limit', 10]
  22. ], $this->request);
  23. $list = CompanyModel::systemPage($where);
  24. return $this->success($list);
  25. }