NoticeSmsService.php 594 B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: tandunzhao
  5. * Date: 2018/3/12
  6. * Time: 下午6:02
  7. */
  8. namespace App\Modules\Notice\Services;
  9. use App\Modules\Notice\Models\NoticeSms;
  10. class NoticeSmsService
  11. {
  12. /**
  13. * 添加短信通知
  14. * @param $params
  15. * @return mixed
  16. */
  17. public static function addNoticeSms($params) {
  18. $data = NoticeSms::create($params);
  19. return $data;
  20. }
  21. /**
  22. * 获取列表
  23. * @return mixed
  24. */
  25. public static function getNoticeSms() {
  26. return NoticeSms::orderBy('created_at', 'desc')->paginate();
  27. }
  28. }