StoreServiceFeedbackDao.php 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
  4. // +----------------------------------------------------------------------
  5. // | Copyright (c) 2016~2023 https://www.crmeb.com All rights reserved.
  6. // +----------------------------------------------------------------------
  7. // | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
  8. // +----------------------------------------------------------------------
  9. // | Author: CRMEB Team <admin@crmeb.com>
  10. // +----------------------------------------------------------------------
  11. namespace app\dao\service;
  12. use app\dao\BaseDao;
  13. use app\model\service\StoreServiceFeedback;
  14. /**
  15. * Class StoreServiceFeedbackDao
  16. * @package app\dao\service
  17. */
  18. class StoreServiceFeedbackDao extends BaseDao
  19. {
  20. protected function setModel(): string
  21. {
  22. return StoreServiceFeedback::class;
  23. }
  24. /**
  25. * 获取用户反馈信息列表
  26. * @param array $where
  27. * @param int $page
  28. * @param int $limit
  29. * @return array
  30. * @throws \think\db\exception\DataNotFoundException
  31. * @throws \think\db\exception\DbException
  32. * @throws \think\db\exception\ModelNotFoundException
  33. */
  34. public function getFeedback(array $where, int $page, int $limit)
  35. {
  36. return $this->search($where)->page($page, $limit)->order('id DESC')->select()->toArray();
  37. }
  38. }