AdSortService.php 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | Laravel框架 [ Laravel ]
  4. // +----------------------------------------------------------------------
  5. // | 版权所有 2017~2021 Laravel研发中心
  6. // +----------------------------------------------------------------------
  7. // | 官方网站: http://www.laravel.cn
  8. // +----------------------------------------------------------------------
  9. // | Author: wesmiler <12345678@qq.com>
  10. // +----------------------------------------------------------------------
  11. namespace App\Services;
  12. use App\Models\AdSortModel;
  13. /**
  14. * 广告位管理-服务类
  15. * @author wesmiler
  16. * @since 2020/11/11
  17. * Class AdSortService
  18. * @package App\Services
  19. */
  20. class AdSortService extends BaseService
  21. {
  22. /**
  23. * 构造函数
  24. * @author wesmiler
  25. * @since 2020/11/11
  26. * AdSortService constructor.
  27. */
  28. public function __construct()
  29. {
  30. $this->model = new AdSortModel();
  31. }
  32. /**
  33. * 获取广告位列表
  34. * @return array
  35. * @since 2020/11/11
  36. * @author wesmiler
  37. */
  38. public function getAdSortList()
  39. {
  40. $list = $this->model->where("mark", '=', 1)->get()->toArray();
  41. return message("操作成功", true, $list);
  42. }
  43. }