WorkGroupMsgSendResultGroupChatServices.php 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. namespace app\services\work;
  12. use app\dao\work\WorkGroupMsgSendResultGroupChatDao;
  13. use app\services\BaseServices;
  14. /**
  15. * Class WorkGroupMsgSendResultGroupChatServices
  16. * @package app\services\work
  17. * @mixin WorkGroupMsgSendResultGroupChatDao
  18. */
  19. class WorkGroupMsgSendResultGroupChatServices extends BaseServices
  20. {
  21. /**
  22. * WorkGroupMsgSendResultGroupChatServices constructor.
  23. * @param WorkGroupMsgSendResultGroupChatDao $dao
  24. */
  25. public function __construct(WorkGroupMsgSendResultGroupChatDao $dao)
  26. {
  27. $this->dao = $dao;
  28. }
  29. /**
  30. * @param array $where
  31. * @return array
  32. * @throws \think\db\exception\DataNotFoundException
  33. * @throws \think\db\exception\DbException
  34. * @throws \think\db\exception\ModelNotFoundException
  35. */
  36. public function getList(array $where)
  37. {
  38. [$page, $limit] = $this->getPageValue();
  39. $list = $this->dao->groupChat($where)->page($page, $limit)->select()->toArray();
  40. $count = $this->dao->groupChat($where)->count();
  41. return compact('list', 'count');
  42. }
  43. }