WechatReplyKeyServices.php 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. declare (strict_types=1);
  12. namespace app\services\wechat;
  13. use app\services\BaseServices;
  14. use app\dao\wechat\WechatReplyKeyDao;
  15. /**
  16. *
  17. * Class UserWechatuserServices
  18. * @package app\services\user
  19. */
  20. class WechatReplyKeyServices extends BaseServices
  21. {
  22. /**
  23. * 构造方法
  24. * WechatReplyKeyServices constructor.
  25. * @param WechatReplyKeyDao $dao
  26. */
  27. public function __construct(WechatReplyKeyDao $dao)
  28. {
  29. $this->dao = $dao;
  30. }
  31. /**
  32. * @param array $where
  33. * @return mixed
  34. */
  35. public function getReplyKeyAll(array $where)
  36. {
  37. [$page, $limit] = $this->getPageValue();
  38. $list = $this->dao->getReplyKeyList($where, $page, $limit);
  39. $count = $this->dao->count($where);
  40. return compact('list', 'count');
  41. }
  42. }