WechatReplyKeyServices.php 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
  4. // +----------------------------------------------------------------------
  5. // | Copyright (c) 2016~2020 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. * @mixin WechatReplyKeyDao
  20. */
  21. class WechatReplyKeyServices extends BaseServices
  22. {
  23. /**
  24. * 构造方法
  25. * WechatReplyKeyServices constructor.
  26. * @param WechatReplyKeyDao $dao
  27. */
  28. public function __construct(WechatReplyKeyDao $dao)
  29. {
  30. $this->dao = $dao;
  31. }
  32. /**
  33. * @param array $where
  34. * @return mixed
  35. */
  36. public function getReplyKeyAll(array $where)
  37. {
  38. [$page, $limit] = $this->getPageValue();
  39. $list = $this->dao->getReplyKeyList($where, $page, $limit);
  40. $count = $this->dao->count($where);
  41. return compact('list', 'count');
  42. }
  43. }