NoticeLogService.php 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | Niucloud-admin 企业快速开发的saas管理平台
  4. // +----------------------------------------------------------------------
  5. // | 官方网址:https://www.niucloud.com
  6. // +----------------------------------------------------------------------
  7. // | niucloud团队 版权所有 开源版本可自由商用
  8. // +----------------------------------------------------------------------
  9. // | Author: Niucloud Team
  10. // +----------------------------------------------------------------------
  11. namespace app\service\admin\notice;
  12. use app\model\sys\SysNoticeLog;
  13. use app\service\core\notice\CoreNoticeLogService;
  14. use core\base\BaseAdminService;
  15. /**
  16. * 消息管理服务层
  17. */
  18. class NoticeLogService extends BaseAdminService
  19. {
  20. public function __construct()
  21. {
  22. parent::__construct();
  23. $this->model = new SysNoticeLog();
  24. }
  25. /**
  26. * 消息发送记录
  27. * @param $where
  28. * @return array
  29. */
  30. public function getPage($where)
  31. {
  32. return (new CoreNoticeLogService())->getPage($this->site_id, $where);
  33. }
  34. /**
  35. * 获取消息发送记录详情
  36. * @param string $id
  37. * @return array
  38. */
  39. public function getInfo(string $id)
  40. {
  41. return (new CoreNoticeLogService())->getInfo($this->site_id, $id);
  42. }
  43. }