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