| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- <?php
- // +----------------------------------------------------------------------
- // | RXThinkCMF框架 [ RXThinkCMF ]
- // +----------------------------------------------------------------------
- // | 版权所有 2017~2021 南京RXThinkCMF研发中心
- // +----------------------------------------------------------------------
- // | 官方网站: http://www.rxthink.cn
- // +----------------------------------------------------------------------
- // | Author: 牧羊人 <1175401194@qq.com>
- // +----------------------------------------------------------------------
- namespace App\Services;
- use App\Models\AdSortModel;
- /**
- * 广告位管理-服务类
- * @author 牧羊人
- * @since 2020/11/11
- * Class AdSortService
- * @package App\Services
- */
- class AdSortService extends BaseService
- {
- /**
- * 构造函数
- * @author 牧羊人
- * @since 2020/11/11
- * AdSortService constructor.
- */
- public function __construct()
- {
- $this->model = new AdSortModel();
- }
- /**
- * 获取广告位列表
- * @return array
- * @since 2020/11/11
- * @author 牧羊人
- */
- public function getAdSortList()
- {
- $list = $this->model->where("mark", '=', 1)->get()->toArray();
- return message("操作成功", true, $list);
- }
- }
|