AdSortService.php 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | RXThinkCMF框架 [ RXThinkCMF ]
  4. // +----------------------------------------------------------------------
  5. // | 版权所有 2017~2021 南京RXThinkCMF研发中心
  6. // +----------------------------------------------------------------------
  7. // | 官方网站: http://www.rxthink.cn
  8. // +----------------------------------------------------------------------
  9. // | Author: 牧羊人 <1175401194@qq.com>
  10. // +----------------------------------------------------------------------
  11. namespace App\Services;
  12. use App\Models\AdSortModel;
  13. /**
  14. * 广告位管理-服务类
  15. * @author 牧羊人
  16. * @since 2020/11/11
  17. * Class AdSortService
  18. * @package App\Services
  19. */
  20. class AdSortService extends BaseService
  21. {
  22. /**
  23. * 构造函数
  24. * @author 牧羊人
  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 牧羊人
  37. */
  38. public function getAdSortList()
  39. {
  40. $list = $this->model->where("mark", '=', 1)->get()->toArray();
  41. return message("操作成功", true, $list);
  42. }
  43. }