AdminMenuServiceImpl.php 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | ThinkCMF [ WE CAN DO IT MORE SIMPLE ]
  4. // +----------------------------------------------------------------------
  5. // | Copyright (c) 2013-present http://www.thinkcmf.com All rights reserved.
  6. // +----------------------------------------------------------------------
  7. // | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
  8. // +----------------------------------------------------------------------
  9. // | Author: 小夏 <449134904@qq.com>
  10. // +----------------------------------------------------------------------
  11. namespace app\admin\service\impl;
  12. use app\admin\model\AdminMenuModel;
  13. use app\admin\service\AdminMenuService;
  14. class AdminMenuServiceImpl implements AdminMenuService
  15. {
  16. public function __construct(AdminMenuModel $model)
  17. {
  18. $this->model = $model;
  19. }
  20. /**
  21. * @param string[] $order
  22. * @return mixed
  23. * @author 小夏
  24. * @email 449134904@qq.com
  25. * @date 2020-11-21 21:44:21
  26. */
  27. public function getAll($order = ["app" => "ASC", "controller" => "ASC", "action" => "ASC"])
  28. {
  29. return $this->model->order($order)->select();
  30. }
  31. }