AdSortService.php 1.3 KB

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