NoticeLog.php 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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\adminapi\controller\notice;
  12. use app\service\admin\notice\NoticeLogService;
  13. use core\base\BaseAdminController;
  14. use think\Response;
  15. class NoticeLog extends BaseAdminController
  16. {
  17. /**
  18. * 消息发送记录列表
  19. * @return Response
  20. */
  21. public function lists()
  22. {
  23. $data = $this->request->params([
  24. ['key', ''],
  25. ['receiver', ''],
  26. ['create_time', []]
  27. ]);
  28. $res = (new NoticeLogService())->getPage($data);
  29. return success($res);
  30. }
  31. public function info($id)
  32. {
  33. $res = (new NoticeLogService())->getInfo($id);
  34. return success($res);
  35. }
  36. }